Class ProcessWebhookRequest.Builder (3.50.0)

public static final class ProcessWebhookRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessWebhookRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ProcessWebhookRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessWebhookRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessWebhookRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessWebhookRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProcessWebhookRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessWebhookRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessWebhookRequest.Builder
Overrides

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.