Class CreateClientTlsPolicyRequest.Builder (0.44.0)

publicstaticfinalclass CreateClientTlsPolicyRequest.BuilderextendsGeneratedMessageV3.Builder<CreateClientTlsPolicyRequest.Builder>implementsCreateClientTlsPolicyRequestOrBuilder

Request used by the CreateClientTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateClientTlsPolicyRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

build()

publicCreateClientTlsPolicyRequestbuild()
Returns
Type Description
CreateClientTlsPolicyRequest

buildPartial()

publicCreateClientTlsPolicyRequestbuildPartial()
Returns
Type Description
CreateClientTlsPolicyRequest

clear()

publicCreateClientTlsPolicyRequest.Builderclear()
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

clearClientTlsPolicy()

publicCreateClientTlsPolicyRequest.BuilderclearClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

clearClientTlsPolicyId()

publicCreateClientTlsPolicyRequest.BuilderclearClientTlsPolicyId()

Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".

string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicCreateClientTlsPolicyRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateClientTlsPolicyRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

clearParent()

publicCreateClientTlsPolicyRequest.BuilderclearParent()

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

clone()

publicCreateClientTlsPolicyRequest.Builderclone()
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

getClientTlsPolicy()

publicClientTlsPolicygetClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClientTlsPolicy

The clientTlsPolicy.

getClientTlsPolicyBuilder()

publicClientTlsPolicy.BuildergetClientTlsPolicyBuilder()

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClientTlsPolicy.Builder

getClientTlsPolicyId()

publicStringgetClientTlsPolicyId()

Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".

string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clientTlsPolicyId.

getClientTlsPolicyIdBytes()

publicByteStringgetClientTlsPolicyIdBytes()

Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".

string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clientTlsPolicyId.

getClientTlsPolicyOrBuilder()

publicClientTlsPolicyOrBuildergetClientTlsPolicyOrBuilder()

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClientTlsPolicyOrBuilder

getDefaultInstanceForType()

publicCreateClientTlsPolicyRequestgetDefaultInstanceForType()
Returns
Type Description
CreateClientTlsPolicyRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

publicStringgetParent()

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasClientTlsPolicy()

publicbooleanhasClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the clientTlsPolicy field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeClientTlsPolicy(ClientTlsPolicy value)

publicCreateClientTlsPolicyRequest.BuildermergeClientTlsPolicy(ClientTlsPolicyvalue)

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ClientTlsPolicy
Returns
Type Description
CreateClientTlsPolicyRequest.Builder

mergeFrom(CreateClientTlsPolicyRequest other)

publicCreateClientTlsPolicyRequest.BuildermergeFrom(CreateClientTlsPolicyRequestother)
Parameter
Name Description
other CreateClientTlsPolicyRequest
Returns
Type Description
CreateClientTlsPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateClientTlsPolicyRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateClientTlsPolicyRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateClientTlsPolicyRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

setClientTlsPolicy(ClientTlsPolicy value)

publicCreateClientTlsPolicyRequest.BuildersetClientTlsPolicy(ClientTlsPolicyvalue)

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ClientTlsPolicy
Returns
Type Description
CreateClientTlsPolicyRequest.Builder

setClientTlsPolicy(ClientTlsPolicy.Builder builderForValue)

publicCreateClientTlsPolicyRequest.BuildersetClientTlsPolicy(ClientTlsPolicy.BuilderbuilderForValue)

Required. ClientTlsPolicy resource to be created.

.google.cloud.networksecurity.v1.ClientTlsPolicy client_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ClientTlsPolicy.Builder
Returns
Type Description
CreateClientTlsPolicyRequest.Builder

setClientTlsPolicyId(String value)

publicCreateClientTlsPolicyRequest.BuildersetClientTlsPolicyId(Stringvalue)

Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".

string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The clientTlsPolicyId to set.

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

setClientTlsPolicyIdBytes(ByteString value)

publicCreateClientTlsPolicyRequest.BuildersetClientTlsPolicyIdBytes(ByteStringvalue)

Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".

string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for clientTlsPolicyId to set.

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateClientTlsPolicyRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

setParent(String value)

publicCreateClientTlsPolicyRequest.BuildersetParent(Stringvalue)

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateClientTlsPolicyRequest.BuildersetParentBytes(ByteStringvalue)

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicCreateClientTlsPolicyRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateClientTlsPolicyRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateClientTlsPolicyRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.