Class CreateClientTlsPolicyRequest.Builder (0.58.0)

public static final class CreateClientTlsPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateClientTlsPolicyRequest.Builder> implements CreateClientTlsPolicyRequestOrBuilder

Request used by the CreateClientTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateClientTlsPolicyRequest build()
Returns
Type Description
CreateClientTlsPolicyRequest

buildPartial()

public CreateClientTlsPolicyRequest buildPartial()
Returns
Type Description
CreateClientTlsPolicyRequest

clear()

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

clearClientTlsPolicy()

public CreateClientTlsPolicyRequest.Builder clearClientTlsPolicy()

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

public CreateClientTlsPolicyRequest.Builder clearClientTlsPolicyId()

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)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateClientTlsPolicyRequest.Builder clearParent()

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

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

getClientTlsPolicy()

public ClientTlsPolicy getClientTlsPolicy()

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

public ClientTlsPolicy.Builder getClientTlsPolicyBuilder()

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

public String getClientTlsPolicyId()

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

public ByteString getClientTlsPolicyIdBytes()

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

public ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder()

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

public CreateClientTlsPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateClientTlsPolicyRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

public ByteString getParentBytes()

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

public boolean hasClientTlsPolicy()

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

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeClientTlsPolicy(ClientTlsPolicy value)

public CreateClientTlsPolicyRequest.Builder mergeClientTlsPolicy(ClientTlsPolicy value)

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)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClientTlsPolicy(ClientTlsPolicy value)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicy(ClientTlsPolicy value)

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)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicy(ClientTlsPolicy.Builder builderForValue)

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)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicyId(String value)

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)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicyIdBytes(ByteString value)

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)

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

setParent(String value)

public CreateClientTlsPolicyRequest.Builder setParent(String value)

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)

public CreateClientTlsPolicyRequest.Builder setParentBytes(ByteString value)

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)

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

setUnknownFields(UnknownFieldSet unknownFields)

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