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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateServerTlsPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateServerTlsPolicyRequest build()
Returns
buildPartial()
public CreateServerTlsPolicyRequest buildPartial()
Returns
clear()
public CreateServerTlsPolicyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateServerTlsPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateServerTlsPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
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
clone()
public CreateServerTlsPolicyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateServerTlsPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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.v1beta1.ServerTlsPolicy server_tls_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Type | Description |
boolean | Whether the serverTlsPolicy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateServerTlsPolicyRequest other)
public CreateServerTlsPolicyRequest.Builder mergeFrom(CreateServerTlsPolicyRequest other)
Parameter
Returns
public CreateServerTlsPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateServerTlsPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateServerTlsPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateServerTlsPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateServerTlsPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateServerTlsPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides