Class ProcessWebhookRequest.Builder (3.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessWebhookRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

build()

public ProcessWebhookRequest build()
Returns
TypeDescription
ProcessWebhookRequest

buildPartial()

public ProcessWebhookRequest buildPartial()
Returns
TypeDescription
ProcessWebhookRequest

clear()

public ProcessWebhookRequest.Builder clear()
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

clearBody()

public ProcessWebhookRequest.Builder clearBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
ProcessWebhookRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ProcessWebhookRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessWebhookRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProcessWebhookRequest.Builder

This builder for chaining.

clone()

public ProcessWebhookRequest.Builder clone()
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

getBody()

public HttpBody getBody()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
com.google.api.HttpBody

The body.

getBodyBuilder()

public HttpBody.Builder getBodyBuilder()

HTTP request body.

.google.api.HttpBody body = 2;

Returns
TypeDescription
com.google.api.HttpBody.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBody(HttpBody value)

public ProcessWebhookRequest.Builder mergeBody(HttpBody value)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
NameDescription
valuecom.google.api.HttpBody
Returns
TypeDescription
ProcessWebhookRequest.Builder

mergeFrom(ProcessWebhookRequest other)

public ProcessWebhookRequest.Builder mergeFrom(ProcessWebhookRequest other)
Parameter
NameDescription
otherProcessWebhookRequest
Returns
TypeDescription
ProcessWebhookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessWebhookRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProcessWebhookRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessWebhookRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

setBody(HttpBody value)

public ProcessWebhookRequest.Builder setBody(HttpBody value)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
NameDescription
valuecom.google.api.HttpBody
Returns
TypeDescription
ProcessWebhookRequest.Builder

setBody(HttpBody.Builder builderForValue)

public ProcessWebhookRequest.Builder setBody(HttpBody.Builder builderForValue)

HTTP request body.

.google.api.HttpBody body = 2;

Parameter
NameDescription
builderForValuecom.google.api.HttpBody.Builder
Returns
TypeDescription
ProcessWebhookRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessWebhookRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProcessWebhookRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessWebhookRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The webhookKey to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for webhookKey to set.

Returns
TypeDescription
ProcessWebhookRequest.Builder

This builder for chaining.