Class CreateClientTlsPolicyRequest.Builder (0.5.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.v1beta1.CreateClientTlsPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateClientTlsPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

build()

public CreateClientTlsPolicyRequest build()
Returns
TypeDescription
CreateClientTlsPolicyRequest

buildPartial()

public CreateClientTlsPolicyRequest buildPartial()
Returns
TypeDescription
CreateClientTlsPolicyRequest

clear()

public CreateClientTlsPolicyRequest.Builder clear()
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

clearClientTlsPolicy()

public CreateClientTlsPolicyRequest.Builder clearClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

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

Returns
TypeDescription
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
TypeDescription
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateClientTlsPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateClientTlsPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

clone()

public CreateClientTlsPolicyRequest.Builder clone()
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

getClientTlsPolicy()

public ClientTlsPolicy getClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

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

Returns
TypeDescription
ClientTlsPolicy

The clientTlsPolicy.

getClientTlsPolicyBuilder()

public ClientTlsPolicy.Builder getClientTlsPolicyBuilder()

Required. ClientTlsPolicy resource to be created.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for clientTlsPolicyId.

getClientTlsPolicyOrBuilder()

public ClientTlsPolicyOrBuilder getClientTlsPolicyOrBuilder()

Required. ClientTlsPolicy resource to be created.

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

Returns
TypeDescription
ClientTlsPolicyOrBuilder

getDefaultInstanceForType()

public CreateClientTlsPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateClientTlsPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

hasClientTlsPolicy()

public boolean hasClientTlsPolicy()

Required. ClientTlsPolicy resource to be created.

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

Returns
TypeDescription
boolean

Whether the clientTlsPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClientTlsPolicy(ClientTlsPolicy value)

public CreateClientTlsPolicyRequest.Builder mergeClientTlsPolicy(ClientTlsPolicy value)

Required. ClientTlsPolicy resource to be created.

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

Parameter
NameDescription
valueClientTlsPolicy
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder

mergeFrom(CreateClientTlsPolicyRequest other)

public CreateClientTlsPolicyRequest.Builder mergeFrom(CreateClientTlsPolicyRequest other)
Parameter
NameDescription
otherCreateClientTlsPolicyRequest
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateClientTlsPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateClientTlsPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateClientTlsPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

setClientTlsPolicy(ClientTlsPolicy value)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicy(ClientTlsPolicy value)

Required. ClientTlsPolicy resource to be created.

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

Parameter
NameDescription
valueClientTlsPolicy
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder

setClientTlsPolicy(ClientTlsPolicy.Builder builderForValue)

public CreateClientTlsPolicyRequest.Builder setClientTlsPolicy(ClientTlsPolicy.Builder builderForValue)

Required. ClientTlsPolicy resource to be created.

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

Parameter
NameDescription
builderForValueClientTlsPolicy.Builder
Returns
TypeDescription
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
NameDescription
valueString

The clientTlsPolicyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for clientTlsPolicyId to set.

Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateClientTlsPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateClientTlsPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateClientTlsPolicyRequest.Builder
Overrides