Class ListRevisionsResponse.Builder (0.30.0)

public static final class ListRevisionsResponse.Builder extends GeneratedMessageV3.Builder<ListRevisionsResponse.Builder> implements ListRevisionsResponseOrBuilder

A response to a 'ListRevisions' call. Contains a list of Revisions.

Protobuf type google.cloud.config.v1.ListRevisionsResponse

Static Methods

getDescriptor()

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

Methods

addAllRevisions(Iterable<? extends Revision> values)

public ListRevisionsResponse.Builder addAllRevisions(Iterable<? extends Revision> values)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.config.v1.Revision>
Returns
Type Description
ListRevisionsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListRevisionsResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRevisions(Revision value)

public ListRevisionsResponse.Builder addRevisions(Revision value)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
value Revision
Returns
Type Description
ListRevisionsResponse.Builder

addRevisions(Revision.Builder builderForValue)

public ListRevisionsResponse.Builder addRevisions(Revision.Builder builderForValue)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
builderForValue Revision.Builder
Returns
Type Description
ListRevisionsResponse.Builder

addRevisions(int index, Revision value)

public ListRevisionsResponse.Builder addRevisions(int index, Revision value)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameters
Name Description
index int
value Revision
Returns
Type Description
ListRevisionsResponse.Builder

addRevisions(int index, Revision.Builder builderForValue)

public ListRevisionsResponse.Builder addRevisions(int index, Revision.Builder builderForValue)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameters
Name Description
index int
builderForValue Revision.Builder
Returns
Type Description
ListRevisionsResponse.Builder

addRevisionsBuilder()

public Revision.Builder addRevisionsBuilder()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
Revision.Builder

addRevisionsBuilder(int index)

public Revision.Builder addRevisionsBuilder(int index)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
index int
Returns
Type Description
Revision.Builder

addUnreachable(String value)

public ListRevisionsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListRevisionsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

build()

public ListRevisionsResponse build()
Returns
Type Description
ListRevisionsResponse

buildPartial()

public ListRevisionsResponse buildPartial()
Returns
Type Description
ListRevisionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRevisionsResponse.Builder clearNextPageToken()

A token to request the next page of resources from the 'ListRevisions' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisions()

public ListRevisionsResponse.Builder clearRevisions()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
ListRevisionsResponse.Builder

clearUnreachable()

public ListRevisionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRevisionsResponse getDefaultInstanceForType()
Returns
Type Description
ListRevisionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to request the next page of resources from the 'ListRevisions' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to request the next page of resources from the 'ListRevisions' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRevisions(int index)

public Revision getRevisions(int index)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
index int
Returns
Type Description
Revision

getRevisionsBuilder(int index)

public Revision.Builder getRevisionsBuilder(int index)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
index int
Returns
Type Description
Revision.Builder

getRevisionsBuilderList()

public List<Revision.Builder> getRevisionsBuilderList()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
List<Builder>

getRevisionsCount()

public int getRevisionsCount()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
int

getRevisionsList()

public List<Revision> getRevisionsList()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
List<Revision>

getRevisionsOrBuilder(int index)

public RevisionOrBuilder getRevisionsOrBuilder(int index)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
index int
Returns
Type Description
RevisionOrBuilder

getRevisionsOrBuilderList()

public List<? extends RevisionOrBuilder> getRevisionsOrBuilderList()

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Returns
Type Description
List<? extends com.google.cloud.config.v1.RevisionOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRevisionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRevisions(int index)

public ListRevisionsResponse.Builder removeRevisions(int index)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRevisionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRevisionsResponse.Builder setNextPageToken(String value)

A token to request the next page of resources from the 'ListRevisions' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRevisionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to request the next page of resources from the 'ListRevisions' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.

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

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

setRevisions(int index, Revision value)

public ListRevisionsResponse.Builder setRevisions(int index, Revision value)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameters
Name Description
index int
value Revision
Returns
Type Description
ListRevisionsResponse.Builder

setRevisions(int index, Revision.Builder builderForValue)

public ListRevisionsResponse.Builder setRevisions(int index, Revision.Builder builderForValue)

List of Revisions.

repeated .google.cloud.config.v1.Revision revisions = 1;

Parameters
Name Description
index int
builderForValue Revision.Builder
Returns
Type Description
ListRevisionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListRevisionsResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListRevisionsResponse.Builder

This builder for chaining.