public final class ApproveBuildRequest extends GeneratedMessageV3 implements ApproveBuildRequestOrBuilder
Request to approve or reject a pending build.
Protobuf type google.devtools.cloudbuild.v1.ApproveBuildRequest
Static Fields
APPROVAL_RESULT_FIELD_NUMBER
public static final int APPROVAL_RESULT_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ApproveBuildRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ApproveBuildRequest.Builder newBuilder()
Returns
newBuilder(ApproveBuildRequest prototype)
public static ApproveBuildRequest.Builder newBuilder(ApproveBuildRequest prototype)
Parameter
Returns
public static ApproveBuildRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApproveBuildRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ApproveBuildRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ApproveBuildRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ApproveBuildRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ApproveBuildRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApproveBuildRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ApproveBuildRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApproveBuildRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApproveBuildRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ApproveBuildRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ApproveBuildRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ApproveBuildRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getApprovalResult()
public ApprovalResult getApprovalResult()
Approval decision and metadata.
.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;
Returns
getApprovalResultOrBuilder()
public ApprovalResultOrBuilder getApprovalResultOrBuilder()
Approval decision and metadata.
.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;
Returns
getDefaultInstanceForType()
public ApproveBuildRequest getDefaultInstanceForType()
Returns
getName()
Required. Name of the target build.
For example: "projects/{$project_id}/builds/{$build_id}"
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. Name of the target build.
For example: "projects/{$project_id}/builds/{$build_id}"
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getParserForType()
public Parser<ApproveBuildRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasApprovalResult()
public boolean hasApprovalResult()
Approval decision and metadata.
.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;
Returns
Type | Description |
boolean | Whether the approvalResult field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ApproveBuildRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ApproveBuildRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ApproveBuildRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions