Class ApproveBuildRequest

public final class ApproveBuildRequest extends GeneratedMessageV3 implements ApproveBuildRequestOrBuilder

Request to approve or reject a pending build.

Protobuf type google.devtools.cloudbuild.v1.ApproveBuildRequest

Fields

APPROVAL_RESULT_FIELD_NUMBER

public static final int APPROVAL_RESULT_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApprovalResult()

public ApprovalResult getApprovalResult()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
TypeDescription
ApprovalResult

The approvalResult.

getApprovalResultOrBuilder()

public ApprovalResultOrBuilder getApprovalResultOrBuilder()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
TypeDescription
ApprovalResultOrBuilder

getDefaultInstance()

public static ApproveBuildRequest getDefaultInstance()
Returns
TypeDescription
ApproveBuildRequest

getDefaultInstanceForType()

public ApproveBuildRequest getDefaultInstanceForType()
Returns
TypeDescription
ApproveBuildRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getName()

public String getName()

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ApproveBuildRequest> getParserForType()
Returns
TypeDescription
Parser<ApproveBuildRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasApprovalResult()

public boolean hasApprovalResult()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
TypeDescription
boolean

Whether the approvalResult field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static ApproveBuildRequest.Builder newBuilder()
Returns
TypeDescription
ApproveBuildRequest.Builder

newBuilder(ApproveBuildRequest prototype)

public static ApproveBuildRequest.Builder newBuilder(ApproveBuildRequest prototype)
Parameter
NameDescription
prototypeApproveBuildRequest
Returns
TypeDescription
ApproveBuildRequest.Builder

newBuilderForType()

public ApproveBuildRequest.Builder newBuilderForType()
Returns
TypeDescription
ApproveBuildRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ApproveBuildRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static ApproveBuildRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ApproveBuildRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ApproveBuildRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ApproveBuildRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ApproveBuildRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ApproveBuildRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ApproveBuildRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ApproveBuildRequest> parser()
Returns
TypeDescription
Parser<ApproveBuildRequest>

toBuilder()

public ApproveBuildRequest.Builder toBuilder()
Returns
TypeDescription
ApproveBuildRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException