Class ProcessWebhookRequest (3.32.0)

public final class ProcessWebhookRequest extends GeneratedMessageV3 implements ProcessWebhookRequestOrBuilder

RPC request object accepted by the ProcessWebhook RPC method.

Protobuf type google.devtools.cloudbuild.v2.ProcessWebhookRequest

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

WEBHOOK_KEY_FIELD_NUMBER

public static final int WEBHOOK_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProcessWebhookRequest getDefaultInstance()
Returns
TypeDescription
ProcessWebhookRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ProcessWebhookRequest prototype)

public static ProcessWebhookRequest.Builder newBuilder(ProcessWebhookRequest prototype)
Parameter
NameDescription
prototypeProcessWebhookRequest
Returns
TypeDescription
ProcessWebhookRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBody()

public HttpBody getBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
com.google.api.HttpBody

The body.

getBodyOrBuilder()

public HttpBodyOrBuilder getBodyOrBuilder()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
com.google.api.HttpBodyOrBuilder

getDefaultInstanceForType()

public ProcessWebhookRequest getDefaultInstanceForType()
Returns
TypeDescription
ProcessWebhookRequest

getParent()

public String getParent()

Required. Project and location where the webhook will be received. Format: projects/*/locations/*.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Project and location where the webhook will be received. Format: projects/*/locations/*.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getWebhookKey()

public String getWebhookKey()

Arbitrary additional key to find the maching repository for a webhook event if needed.

string webhook_key = 3;

Returns
TypeDescription
String

The webhookKey.

getWebhookKeyBytes()

public ByteString getWebhookKeyBytes()

Arbitrary additional key to find the maching repository for a webhook event if needed.

string webhook_key = 3;

Returns
TypeDescription
ByteString

The bytes for webhookKey.

hasBody()

public boolean hasBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
boolean

Whether the body 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

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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