public final class UpdateConnectionRequest extends GeneratedMessageV3 implements UpdateConnectionRequestOrBuilder
Message for updating a Connection.
Protobuf type google.devtools.cloudbuild.v2.UpdateConnectionRequest
Static Fields
public static final int ALLOW_MISSING_FIELD_NUMBER
Field Value
public static final int CONNECTION_FIELD_NUMBER
Field Value
public static final int ETAG_FIELD_NUMBER
Field Value
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
Static Methods
public static UpdateConnectionRequest getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static UpdateConnectionRequest.Builder newBuilder()
Returns
public static UpdateConnectionRequest.Builder newBuilder(UpdateConnectionRequest prototype)
Parameter
Returns
public static UpdateConnectionRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateConnectionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static UpdateConnectionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<UpdateConnectionRequest> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public boolean getAllowMissing()
If set to true, and the connection is not found a new connection
will be created. In this situation update_mask
is ignored.
The creation will succeed only if the input connection has all the
necessary information (e.g a github_config with both user_oauth_token and
installation_id properties).
bool allow_missing = 3;
Returns
Type | Description |
boolean | The allowMissing.
|
public Connection getConnection()
Required. The Connection to update.
.google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public ConnectionOrBuilder getConnectionOrBuilder()
Required. The Connection to update.
.google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public UpdateConnectionRequest getDefaultInstanceForType()
Returns
The current etag of the connection.
If an etag is provided and does not match the current etag of the
connection, update will be blocked and an ABORTED error will be returned.
string etag = 4;
Returns
Type | Description |
String | The etag.
|
public ByteString getEtagBytes()
The current etag of the connection.
If an etag is provided and does not match the current etag of the
connection, update will be blocked and an ABORTED error will be returned.
string etag = 4;
Returns
public Parser<UpdateConnectionRequest> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public FieldMask getUpdateMask()
The list of fields to be updated.
.google.protobuf.FieldMask update_mask = 2;
Returns
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
The list of fields to be updated.
.google.protobuf.FieldMask update_mask = 2;
Returns
public boolean hasConnection()
Required. The Connection to update.
.google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the connection field is set.
|
public boolean hasUpdateMask()
The list of fields to be updated.
.google.protobuf.FieldMask update_mask = 2;
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UpdateConnectionRequest.Builder newBuilderForType()
Returns
protected UpdateConnectionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public UpdateConnectionRequest.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions