Class GetBuildTriggerRequest.Builder (3.46.0)

public static final class GetBuildTriggerRequest.Builder extends GeneratedMessageV3.Builder<GetBuildTriggerRequest.Builder> implements GetBuildTriggerRequestOrBuilder

Returns the BuildTrigger with the specified ID.

Protobuf type google.devtools.cloudbuild.v1.GetBuildTriggerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetBuildTriggerRequest build()
Returns
Type Description
GetBuildTriggerRequest

buildPartial()

public GetBuildTriggerRequest buildPartial()
Returns
Type Description
GetBuildTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetBuildTriggerRequest.Builder clearName()

The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

string name = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public GetBuildTriggerRequest.Builder clearProjectId()

Required. ID of the project that owns the trigger.

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

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

clearTriggerId()

public GetBuildTriggerRequest.Builder clearTriggerId()

Required. Identifier (id or name) of the BuildTrigger to get.

string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetBuildTriggerRequest getDefaultInstanceForType()
Returns
Type Description
GetBuildTriggerRequest

getDescriptorForType()

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

getName()

public String getName()

The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

string name = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

string name = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getProjectId()

public String getProjectId()

Required. ID of the project that owns the trigger.

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

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project that owns the trigger.

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

Returns
Type Description
ByteString

The bytes for projectId.

getTriggerId()

public String getTriggerId()

Required. Identifier (id or name) of the BuildTrigger to get.

string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

Required. Identifier (id or name) of the BuildTrigger to get.

string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for triggerId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetBuildTriggerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetBuildTriggerRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetBuildTriggerRequest.Builder setName(String value)

The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

string name = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetBuildTriggerRequest.Builder setNameBytes(ByteString value)

The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}

string name = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

setProjectId(String value)

public GetBuildTriggerRequest.Builder setProjectId(String value)

Required. ID of the project that owns the trigger.

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

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public GetBuildTriggerRequest.Builder setProjectIdBytes(ByteString value)

Required. ID of the project that owns the trigger.

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

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

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

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

setTriggerId(String value)

public GetBuildTriggerRequest.Builder setTriggerId(String value)

Required. Identifier (id or name) of the BuildTrigger to get.

string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The triggerId to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

setTriggerIdBytes(ByteString value)

public GetBuildTriggerRequest.Builder setTriggerIdBytes(ByteString value)

Required. Identifier (id or name) of the BuildTrigger to get.

string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for triggerId to set.

Returns
Type Description
GetBuildTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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