Class CreateServerTlsPolicyRequest.Builder (0.47.0)

publicstaticfinalclass CreateServerTlsPolicyRequest.BuilderextendsGeneratedMessageV3.Builder<CreateServerTlsPolicyRequest.Builder>implementsCreateServerTlsPolicyRequestOrBuilder

Request used by the CreateServerTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest

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)

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

build()

publicCreateServerTlsPolicyRequestbuild()
Returns
Type Description
CreateServerTlsPolicyRequest

buildPartial()

publicCreateServerTlsPolicyRequestbuildPartial()
Returns
Type Description
CreateServerTlsPolicyRequest

clear()

publicCreateServerTlsPolicyRequest.Builderclear()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateServerTlsPolicyRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateServerTlsPolicyRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearParent()

publicCreateServerTlsPolicyRequest.BuilderclearParent()

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

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

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

clearServerTlsPolicy()

publicCreateServerTlsPolicyRequest.BuilderclearServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

clearServerTlsPolicyId()

publicCreateServerTlsPolicyRequest.BuilderclearServerTlsPolicyId()

Required. Short name of the ServerTlsPolicy 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. "server_mtls_policy".

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

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

clone()

publicCreateServerTlsPolicyRequest.Builderclone()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateServerTlsPolicyRequestgetDefaultInstanceForType()
Returns
Type Description
CreateServerTlsPolicyRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

publicStringgetParent()

Required. The parent resource of the ServerTlsPolicy. 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 ServerTlsPolicy. 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.

getServerTlsPolicy()

publicServerTlsPolicygetServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServerTlsPolicy

The serverTlsPolicy.

getServerTlsPolicyBuilder()

publicServerTlsPolicy.BuildergetServerTlsPolicyBuilder()

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServerTlsPolicy.Builder

getServerTlsPolicyId()

publicStringgetServerTlsPolicyId()

Required. Short name of the ServerTlsPolicy 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. "server_mtls_policy".

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

Returns
Type Description
String

The serverTlsPolicyId.

getServerTlsPolicyIdBytes()

publicByteStringgetServerTlsPolicyIdBytes()

Required. Short name of the ServerTlsPolicy 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. "server_mtls_policy".

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

Returns
Type Description
ByteString

The bytes for serverTlsPolicyId.

getServerTlsPolicyOrBuilder()

publicServerTlsPolicyOrBuildergetServerTlsPolicyOrBuilder()

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServerTlsPolicyOrBuilder

hasServerTlsPolicy()

publicbooleanhasServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the serverTlsPolicy field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateServerTlsPolicyRequest other)

publicCreateServerTlsPolicyRequest.BuildermergeFrom(CreateServerTlsPolicyRequestother)
Parameter
Name Description
other CreateServerTlsPolicyRequest
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicCreateServerTlsPolicyRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

mergeServerTlsPolicy(ServerTlsPolicy value)

publicCreateServerTlsPolicyRequest.BuildermergeServerTlsPolicy(ServerTlsPolicyvalue)

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServerTlsPolicy
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateServerTlsPolicyRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

publicCreateServerTlsPolicyRequest.BuildersetParent(Stringvalue)

Required. The parent resource of the ServerTlsPolicy. 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
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateServerTlsPolicyRequest.BuildersetParentBytes(ByteStringvalue)

Required. The parent resource of the ServerTlsPolicy. 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
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

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

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

setServerTlsPolicy(ServerTlsPolicy value)

publicCreateServerTlsPolicyRequest.BuildersetServerTlsPolicy(ServerTlsPolicyvalue)

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServerTlsPolicy
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

setServerTlsPolicy(ServerTlsPolicy.Builder builderForValue)

publicCreateServerTlsPolicyRequest.BuildersetServerTlsPolicy(ServerTlsPolicy.BuilderbuilderForValue)

Required. ServerTlsPolicy resource to be created.

.google.cloud.networksecurity.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ServerTlsPolicy.Builder
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

setServerTlsPolicyId(String value)

publicCreateServerTlsPolicyRequest.BuildersetServerTlsPolicyId(Stringvalue)

Required. Short name of the ServerTlsPolicy 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. "server_mtls_policy".

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

Parameter
Name Description
value String

The serverTlsPolicyId to set.

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

setServerTlsPolicyIdBytes(ByteString value)

publicCreateServerTlsPolicyRequest.BuildersetServerTlsPolicyIdBytes(ByteStringvalue)

Required. Short name of the ServerTlsPolicy 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. "server_mtls_policy".

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

Parameter
Name Description
value ByteString

The bytes for serverTlsPolicyId to set.

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateServerTlsPolicyRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateServerTlsPolicyRequest.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.