Class CreateServerTlsPolicyRequest.Builder (0.54.0)

public static final class CreateServerTlsPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateServerTlsPolicyRequest.Builder> implements CreateServerTlsPolicyRequestOrBuilder

Request used by the CreateServerTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateServerTlsPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

build()

public CreateServerTlsPolicyRequest build()
Returns
Type Description
CreateServerTlsPolicyRequest

buildPartial()

public CreateServerTlsPolicyRequest buildPartial()
Returns
Type Description
CreateServerTlsPolicyRequest

clear()

public CreateServerTlsPolicyRequest.Builder clear()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateServerTlsPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateServerTlsPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

clearParent()

public CreateServerTlsPolicyRequest.Builder clearParent()

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()

public CreateServerTlsPolicyRequest.Builder clearServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
CreateServerTlsPolicyRequest.Builder

clearServerTlsPolicyId()

public CreateServerTlsPolicyRequest.Builder clearServerTlsPolicyId()

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()

public CreateServerTlsPolicyRequest.Builder clone()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateServerTlsPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateServerTlsPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

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()

public ByteString getParentBytes()

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()

public ServerTlsPolicy getServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
ServerTlsPolicy

The serverTlsPolicy.

getServerTlsPolicyBuilder()

public ServerTlsPolicy.Builder getServerTlsPolicyBuilder()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
ServerTlsPolicy.Builder

getServerTlsPolicyId()

public String getServerTlsPolicyId()

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()

public ByteString getServerTlsPolicyIdBytes()

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()

public ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
ServerTlsPolicyOrBuilder

hasServerTlsPolicy()

public boolean hasServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
boolean

Whether the serverTlsPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateServerTlsPolicyRequest other)

public CreateServerTlsPolicyRequest.Builder mergeFrom(CreateServerTlsPolicyRequest other)
Parameter
Name Description
other CreateServerTlsPolicyRequest
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateServerTlsPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateServerTlsPolicyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

mergeServerTlsPolicy(ServerTlsPolicy value)

public CreateServerTlsPolicyRequest.Builder mergeServerTlsPolicy(ServerTlsPolicy value)

Required. ServerTlsPolicy resource to be created.

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

Parameter
Name Description
value ServerTlsPolicy
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateServerTlsPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateServerTlsPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

setParent(String value)

public CreateServerTlsPolicyRequest.Builder setParent(String value)

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)

public CreateServerTlsPolicyRequest.Builder setParentBytes(ByteString value)

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)

public CreateServerTlsPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

setServerTlsPolicy(ServerTlsPolicy value)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicy(ServerTlsPolicy value)

Required. ServerTlsPolicy resource to be created.

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

Parameter
Name Description
value ServerTlsPolicy
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

setServerTlsPolicy(ServerTlsPolicy.Builder builderForValue)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicy(ServerTlsPolicy.Builder builderForValue)

Required. ServerTlsPolicy resource to be created.

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

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

setServerTlsPolicyId(String value)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicyId(String value)

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)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicyIdBytes(ByteString value)

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)

public final CreateServerTlsPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides