Class GetBuildTriggerRequest.Builder (3.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetBuildTriggerRequest build()
Returns
TypeDescription
GetBuildTriggerRequest

buildPartial()

public GetBuildTriggerRequest buildPartial()
Returns
TypeDescription
GetBuildTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetBuildTriggerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetBuildTriggerRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetBuildTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
GetBuildTriggerRequest

getDescriptorForType()

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

The bytes for triggerId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetBuildTriggerRequest other)

public GetBuildTriggerRequest.Builder mergeFrom(GetBuildTriggerRequest other)
Parameter
NameDescription
otherGetBuildTriggerRequest
Returns
TypeDescription
GetBuildTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The projectId to set.

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

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The triggerId to set.

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

The bytes for triggerId to set.

Returns
TypeDescription
GetBuildTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GetBuildTriggerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetBuildTriggerRequest.Builder
Overrides