Class ListBuildTriggersResponse.Builder (3.44.0)

public static final class ListBuildTriggersResponse.Builder extends GeneratedMessageV3.Builder<ListBuildTriggersResponse.Builder> implements ListBuildTriggersResponseOrBuilder

Response containing existing BuildTriggers.

Protobuf type google.devtools.cloudbuild.v1.ListBuildTriggersResponse

Static Methods

getDescriptor()

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

Methods

addAllTriggers(Iterable<? extends BuildTrigger> values)

public ListBuildTriggersResponse.Builder addAllTriggers(Iterable<? extends BuildTrigger> values)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloudbuild.v1.BuildTrigger>
Returns
Type Description
ListBuildTriggersResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTriggers(BuildTrigger value)

public ListBuildTriggersResponse.Builder addTriggers(BuildTrigger value)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
value BuildTrigger
Returns
Type Description
ListBuildTriggersResponse.Builder

addTriggers(BuildTrigger.Builder builderForValue)

public ListBuildTriggersResponse.Builder addTriggers(BuildTrigger.Builder builderForValue)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
builderForValue BuildTrigger.Builder
Returns
Type Description
ListBuildTriggersResponse.Builder

addTriggers(int index, BuildTrigger value)

public ListBuildTriggersResponse.Builder addTriggers(int index, BuildTrigger value)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameters
Name Description
index int
value BuildTrigger
Returns
Type Description
ListBuildTriggersResponse.Builder

addTriggers(int index, BuildTrigger.Builder builderForValue)

public ListBuildTriggersResponse.Builder addTriggers(int index, BuildTrigger.Builder builderForValue)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameters
Name Description
index int
builderForValue BuildTrigger.Builder
Returns
Type Description
ListBuildTriggersResponse.Builder

addTriggersBuilder()

public BuildTrigger.Builder addTriggersBuilder()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
BuildTrigger.Builder

addTriggersBuilder(int index)

public BuildTrigger.Builder addTriggersBuilder(int index)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
index int
Returns
Type Description
BuildTrigger.Builder

build()

public ListBuildTriggersResponse build()
Returns
Type Description
ListBuildTriggersResponse

buildPartial()

public ListBuildTriggersResponse buildPartial()
Returns
Type Description
ListBuildTriggersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBuildTriggersResponse.Builder clearNextPageToken()

Token to receive the next page of results.

string next_page_token = 2;

Returns
Type Description
ListBuildTriggersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTriggers()

public ListBuildTriggersResponse.Builder clearTriggers()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
ListBuildTriggersResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListBuildTriggersResponse getDefaultInstanceForType()
Returns
Type Description
ListBuildTriggersResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to receive the next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to receive the next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTriggers(int index)

public BuildTrigger getTriggers(int index)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
index int
Returns
Type Description
BuildTrigger

getTriggersBuilder(int index)

public BuildTrigger.Builder getTriggersBuilder(int index)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
index int
Returns
Type Description
BuildTrigger.Builder

getTriggersBuilderList()

public List<BuildTrigger.Builder> getTriggersBuilderList()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
List<Builder>

getTriggersCount()

public int getTriggersCount()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
int

getTriggersList()

public List<BuildTrigger> getTriggersList()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
List<BuildTrigger>

getTriggersOrBuilder(int index)

public BuildTriggerOrBuilder getTriggersOrBuilder(int index)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
index int
Returns
Type Description
BuildTriggerOrBuilder

getTriggersOrBuilderList()

public List<? extends BuildTriggerOrBuilder> getTriggersOrBuilderList()

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Returns
Type Description
List<? extends com.google.cloudbuild.v1.BuildTriggerOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBuildTriggersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTriggers(int index)

public ListBuildTriggersResponse.Builder removeTriggers(int index)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBuildTriggersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBuildTriggersResponse.Builder setNextPageToken(String value)

Token to receive the next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBuildTriggersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBuildTriggersResponse.Builder setNextPageTokenBytes(ByteString value)

Token to receive the next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBuildTriggersResponse.Builder

This builder for chaining.

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

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

setTriggers(int index, BuildTrigger value)

public ListBuildTriggersResponse.Builder setTriggers(int index, BuildTrigger value)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameters
Name Description
index int
value BuildTrigger
Returns
Type Description
ListBuildTriggersResponse.Builder

setTriggers(int index, BuildTrigger.Builder builderForValue)

public ListBuildTriggersResponse.Builder setTriggers(int index, BuildTrigger.Builder builderForValue)

BuildTriggers for the project, sorted by create_time descending.

repeated .google.devtools.cloudbuild.v1.BuildTrigger triggers = 1;

Parameters
Name Description
index int
builderForValue BuildTrigger.Builder
Returns
Type Description
ListBuildTriggersResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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