Class CreateServerTlsPolicyRequest (0.39.0)

publicfinalclass CreateServerTlsPolicyRequestextendsGeneratedMessageV3implementsCreateServerTlsPolicyRequestOrBuilder

Request used by the CreateServerTlsPolicy method.

Protobuf type google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

SERVER_TLS_POLICY_FIELD_NUMBER

publicstaticfinalintSERVER_TLS_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SERVER_TLS_POLICY_ID_FIELD_NUMBER

publicstaticfinalintSERVER_TLS_POLICY_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateServerTlsPolicyRequestgetDefaultInstance()
Returns
Type Description
CreateServerTlsPolicyRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateServerTlsPolicyRequest.BuildernewBuilder()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

newBuilder(CreateServerTlsPolicyRequest prototype)

publicstaticCreateServerTlsPolicyRequest.BuildernewBuilder(CreateServerTlsPolicyRequestprototype)
Parameter
Name Description
prototype CreateServerTlsPolicyRequest
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateServerTlsPolicyRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCreateServerTlsPolicyRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCreateServerTlsPolicyRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCreateServerTlsPolicyRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCreateServerTlsPolicyRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCreateServerTlsPolicyRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateServerTlsPolicyRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateServerTlsPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CreateServerTlsPolicyRequest>parser()
Returns
Type Description
Parser<CreateServerTlsPolicyRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicCreateServerTlsPolicyRequestgetDefaultInstanceForType()
Returns
Type Description
CreateServerTlsPolicyRequest

getParent()

publicStringgetParent()

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

publicByteStringgetParentBytes()

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.

getParserForType()

publicParser<CreateServerTlsPolicyRequest>getParserForType()
Returns
Type Description
Parser<CreateServerTlsPolicyRequest>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getServerTlsPolicy()

publicServerTlsPolicygetServerTlsPolicy()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
ServerTlsPolicy

The serverTlsPolicy.

getServerTlsPolicyId()

publicStringgetServerTlsPolicyId()

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

publicByteStringgetServerTlsPolicyIdBytes()

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

publicServerTlsPolicyOrBuildergetServerTlsPolicyOrBuilder()

Required. ServerTlsPolicy resource to be created.

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

Returns
Type Description
ServerTlsPolicyOrBuilder

hasServerTlsPolicy()

publicbooleanhasServerTlsPolicy()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCreateServerTlsPolicyRequest.BuildernewBuilderForType()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateServerTlsPolicyRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateServerTlsPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCreateServerTlsPolicyRequest.BuildertoBuilder()
Returns
Type Description
CreateServerTlsPolicyRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.