Class CreateServerTlsPolicyRequest.Builder (0.6.2)

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

Request used by the CreateServerTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateServerTlsPolicyRequest build()
Returns
TypeDescription
CreateServerTlsPolicyRequest

buildPartial()

public CreateServerTlsPolicyRequest buildPartial()
Returns
TypeDescription
CreateServerTlsPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearServerTlsPolicy()

public CreateServerTlsPolicyRequest.Builder clearServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateServerTlsPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateServerTlsPolicyRequest

getDescriptorForType()

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

The bytes for parent.

getServerTlsPolicy()

public ServerTlsPolicy getServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
TypeDescription
ServerTlsPolicy

The serverTlsPolicy.

getServerTlsPolicyBuilder()

public ServerTlsPolicy.Builder getServerTlsPolicyBuilder()

Required. ServerTlsPolicy resource to be created.

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

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

The bytes for serverTlsPolicyId.

getServerTlsPolicyOrBuilder()

public ServerTlsPolicyOrBuilder getServerTlsPolicyOrBuilder()

Required. ServerTlsPolicy resource to be created.

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

Returns
TypeDescription
ServerTlsPolicyOrBuilder

hasServerTlsPolicy()

public boolean hasServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
TypeDescription
boolean

Whether the serverTlsPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateServerTlsPolicyRequest other)

public CreateServerTlsPolicyRequest.Builder mergeFrom(CreateServerTlsPolicyRequest other)
Parameter
NameDescription
otherCreateServerTlsPolicyRequest
Returns
TypeDescription
CreateServerTlsPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServerTlsPolicy(ServerTlsPolicy value)

public CreateServerTlsPolicyRequest.Builder mergeServerTlsPolicy(ServerTlsPolicy value)

Required. ServerTlsPolicy resource to be created.

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

Parameter
NameDescription
valueServerTlsPolicy
Returns
TypeDescription
CreateServerTlsPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setServerTlsPolicy(ServerTlsPolicy value)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicy(ServerTlsPolicy value)

Required. ServerTlsPolicy resource to be created.

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

Parameter
NameDescription
valueServerTlsPolicy
Returns
TypeDescription
CreateServerTlsPolicyRequest.Builder

setServerTlsPolicy(ServerTlsPolicy.Builder builderForValue)

public CreateServerTlsPolicyRequest.Builder setServerTlsPolicy(ServerTlsPolicy.Builder builderForValue)

Required. ServerTlsPolicy resource to be created.

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

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

The serverTlsPolicyId to set.

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

The bytes for serverTlsPolicyId to set.

Returns
TypeDescription
CreateServerTlsPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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