Class ProcessWebhookRequest.Builder (3.85.0)

public static final class ProcessWebhookRequest.Builder extends GeneratedMessage.Builder<ProcessWebhookRequest.Builder> implements ProcessWebhookRequestOrBuilder

RPC request object accepted by the ProcessWebhook RPC method.

Protobuf type google.devtools.cloudbuild.v2.ProcessWebhookRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ProcessWebhookRequest build()
Returns
Type Description
ProcessWebhookRequest

buildPartial()

public ProcessWebhookRequest buildPartial()
Returns
Type Description
ProcessWebhookRequest

clear()

public ProcessWebhookRequest.Builder clear()
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

clearBody()

public ProcessWebhookRequest.Builder clearBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
Type Description
ProcessWebhookRequest.Builder

clearParent()

public ProcessWebhookRequest.Builder clearParent()

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
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.

clearWebhookKey()

public ProcessWebhookRequest.Builder clearWebhookKey()

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

string webhook_key = 3;

Returns
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.

getBody()

public HttpBody getBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
Type Description
com.google.api.HttpBody

The body.

getBodyBuilder()

public HttpBody.Builder getBodyBuilder()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
Type Description
com.google.api.HttpBody.Builder

getBodyOrBuilder()

public HttpBodyOrBuilder getBodyOrBuilder()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
Type Description
com.google.api.HttpBodyOrBuilder

getDefaultInstanceForType()

public ProcessWebhookRequest getDefaultInstanceForType()
Returns
Type Description
ProcessWebhookRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for parent.

getWebhookKey()

public String getWebhookKey()

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

string webhook_key = 3;

Returns
Type Description
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
Type Description
ByteString

The bytes for webhookKey.

hasBody()

public boolean hasBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
Type Description
boolean

Whether the body field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBody(HttpBody value)

public ProcessWebhookRequest.Builder mergeBody(HttpBody value)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
Name Description
value com.google.api.HttpBody
Returns
Type Description
ProcessWebhookRequest.Builder

mergeFrom(ProcessWebhookRequest other)

public ProcessWebhookRequest.Builder mergeFrom(ProcessWebhookRequest other)
Parameter
Name Description
other ProcessWebhookRequest
Returns
Type Description
ProcessWebhookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessWebhookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProcessWebhookRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

setBody(HttpBody value)

public ProcessWebhookRequest.Builder setBody(HttpBody value)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
Name Description
value com.google.api.HttpBody
Returns
Type Description
ProcessWebhookRequest.Builder

setBody(HttpBody.Builder builderForValue)

public ProcessWebhookRequest.Builder setBody(HttpBody.Builder builderForValue)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
Name Description
builderForValue com.google.api.HttpBody.Builder
Returns
Type Description
ProcessWebhookRequest.Builder

setParent(String value)

public ProcessWebhookRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ProcessWebhookRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.

setWebhookKey(String value)

public ProcessWebhookRequest.Builder setWebhookKey(String value)

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

string webhook_key = 3;

Parameter
Name Description
value String

The webhookKey to set.

Returns
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.

setWebhookKeyBytes(ByteString value)

public ProcessWebhookRequest.Builder setWebhookKeyBytes(ByteString value)

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

string webhook_key = 3;

Parameter
Name Description
value ByteString

The bytes for webhookKey to set.

Returns
Type Description
ProcessWebhookRequest.Builder

This builder for chaining.