Class CreateConnectionRequest (3.20.0)

publicfinalclass CreateConnectionRequestextendsGeneratedMessageV3implementsCreateConnectionRequestOrBuilder

Message for creating a Connection

Protobuf type google.devtools.cloudbuild.v2.CreateConnectionRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

CONNECTION_FIELD_NUMBER

publicstaticfinalintCONNECTION_FIELD_NUMBER
Field Value
Type Description
int

CONNECTION_ID_FIELD_NUMBER

publicstaticfinalintCONNECTION_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateConnectionRequestgetDefaultInstance()
Returns
Type Description
CreateConnectionRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateConnectionRequest.BuildernewBuilder()
Returns
Type Description
CreateConnectionRequest.Builder

newBuilder(CreateConnectionRequest prototype)

publicstaticCreateConnectionRequest.BuildernewBuilder(CreateConnectionRequestprototype)
Parameter
Name Description
prototype CreateConnectionRequest
Returns
Type Description
CreateConnectionRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateConnectionRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticCreateConnectionRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticCreateConnectionRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticCreateConnectionRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticCreateConnectionRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticCreateConnectionRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateConnectionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConnection()

publicConnectiongetConnection()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Connection

The connection.

getConnectionId()

publicStringgetConnectionId()

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The connectionId.

getConnectionIdBytes()

publicByteStringgetConnectionIdBytes()

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string connection_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for connectionId.

getConnectionOrBuilder()

publicConnectionOrBuildergetConnectionOrBuilder()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectionOrBuilder

getDefaultInstanceForType()

publicCreateConnectionRequestgetDefaultInstanceForType()
Returns
Type Description
CreateConnectionRequest

getParent()

publicStringgetParent()

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasConnection()

publicbooleanhasConnection()

Required. The Connection to create.

.google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the connection 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()

publicCreateConnectionRequest.BuildernewBuilderForType()
Returns
Type Description
CreateConnectionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateConnectionRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateConnectionRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicCreateConnectionRequest.BuildertoBuilder()
Returns
Type Description
CreateConnectionRequest.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年11月19日 UTC.