Class ListRevisionsResponse.Builder (0.9.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.config.v1.Revision>
Returns
TypeDescription
ListRevisionsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListRevisionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRevisions(Revision value)

public ListRevisionsResponse.Builder addRevisions(Revision value)

List of Revisions.

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

Parameter
NameDescription
valueRevision
Returns
TypeDescription
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
NameDescription
builderForValueRevision.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRevision
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRevision.Builder
Returns
TypeDescription
ListRevisionsResponse.Builder

addRevisionsBuilder()

public Revision.Builder addRevisionsBuilder()

List of Revisions.

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

Returns
TypeDescription
Revision.Builder

addRevisionsBuilder(int index)

public Revision.Builder addRevisionsBuilder(int index)

List of Revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Revision.Builder

addUnreachable(String value)

public ListRevisionsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListRevisionsResponse.Builder

This builder for chaining.

build()

public ListRevisionsResponse build()
Returns
TypeDescription
ListRevisionsResponse

buildPartial()

public ListRevisionsResponse buildPartial()
Returns
TypeDescription
ListRevisionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRevisionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListRevisionsResponse.Builder
Overrides

clearRevisions()

public ListRevisionsResponse.Builder clearRevisions()

List of Revisions.

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

Returns
TypeDescription
ListRevisionsResponse.Builder

clearUnreachable()

public ListRevisionsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListRevisionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRevisionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRevisionsResponse

getDescriptorForType()

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

getRevisionsBuilder(int index)

public Revision.Builder getRevisionsBuilder(int index)

List of Revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Revision.Builder

getRevisionsBuilderList()

public List<Revision.Builder> getRevisionsBuilderList()

List of Revisions.

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

Returns
TypeDescription
List<Builder>

getRevisionsCount()

public int getRevisionsCount()

List of Revisions.

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

Returns
TypeDescription
int

getRevisionsList()

public List<Revision> getRevisionsList()

List of Revisions.

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

Returns
TypeDescription
List<Revision>

getRevisionsOrBuilder(int index)

public RevisionOrBuilder getRevisionsOrBuilder(int index)

List of Revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RevisionOrBuilder

getRevisionsOrBuilderList()

public List<? extends RevisionOrBuilder> getRevisionsOrBuilderList()

List of Revisions.

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

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRevisionsResponse other)

public ListRevisionsResponse.Builder mergeFrom(ListRevisionsResponse other)
Parameter
NameDescription
otherListRevisionsResponse
Returns
TypeDescription
ListRevisionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRevisions(int index)

public ListRevisionsResponse.Builder removeRevisions(int index)

List of Revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListRevisionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRevision
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRevision.Builder
Returns
TypeDescription
ListRevisionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListRevisionsResponse.Builder

This builder for chaining.