Class ListBuildTriggersResponse.Builder (3.26.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.BuildTrigger>
Returns
TypeDescription
ListBuildTriggersResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListBuildTriggersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueBuildTrigger
Returns
TypeDescription
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
NameDescription
builderForValueBuildTrigger.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBuildTrigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuildTrigger.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BuildTrigger.Builder

build()

public ListBuildTriggersResponse build()
Returns
TypeDescription
ListBuildTriggersResponse

buildPartial()

public ListBuildTriggersResponse buildPartial()
Returns
TypeDescription
ListBuildTriggersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBuildTriggersResponse.Builder clearNextPageToken()

Token to receive the next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListBuildTriggersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListBuildTriggersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBuildTriggersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token to receive the next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to receive the next page of results.

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getTriggersCount()

public int getTriggersCount()

BuildTriggers for the project, sorted by create_time descending.

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

Returns
TypeDescription
int

getTriggersList()

public List<BuildTrigger> getTriggersList()

BuildTriggers for the project, sorted by create_time descending.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloudbuild.v1.BuildTriggerOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBuildTriggersResponse other)

public ListBuildTriggersResponse.Builder mergeFrom(ListBuildTriggersResponse other)
Parameter
NameDescription
otherListBuildTriggersResponse
Returns
TypeDescription
ListBuildTriggersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBuildTriggersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListBuildTriggersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueBuildTrigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBuildTrigger.Builder
Returns
TypeDescription
ListBuildTriggersResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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