Class ListPreviewsResponse.Builder (0.29.0)

public static final class ListPreviewsResponse.Builder extends GeneratedMessageV3.Builder<ListPreviewsResponse.Builder> implements ListPreviewsResponseOrBuilder

A response to a ListPreviews call. Contains a list of Previews.

Protobuf type google.cloud.config.v1.ListPreviewsResponse

Static Methods

getDescriptor()

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

Methods

addAllPreviews(Iterable<? extends Preview> values)

public ListPreviewsResponse.Builder addAllPreviews(Iterable<? extends Preview> values)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

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

addAllUnreachable(Iterable<String> values)

public ListPreviewsResponse.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
ListPreviewsResponse.Builder

This builder for chaining.

addPreviews(Preview value)

public ListPreviewsResponse.Builder addPreviews(Preview value)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
value Preview
Returns
Type Description
ListPreviewsResponse.Builder

addPreviews(Preview.Builder builderForValue)

public ListPreviewsResponse.Builder addPreviews(Preview.Builder builderForValue)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
builderForValue Preview.Builder
Returns
Type Description
ListPreviewsResponse.Builder

addPreviews(int index, Preview value)

public ListPreviewsResponse.Builder addPreviews(int index, Preview value)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameters
Name Description
index int
value Preview
Returns
Type Description
ListPreviewsResponse.Builder

addPreviews(int index, Preview.Builder builderForValue)

public ListPreviewsResponse.Builder addPreviews(int index, Preview.Builder builderForValue)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameters
Name Description
index int
builderForValue Preview.Builder
Returns
Type Description
ListPreviewsResponse.Builder

addPreviewsBuilder()

public Preview.Builder addPreviewsBuilder()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Returns
Type Description
Preview.Builder

addPreviewsBuilder(int index)

public Preview.Builder addPreviewsBuilder(int index)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
index int
Returns
Type Description
Preview.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPreviewsResponse.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
ListPreviewsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListPreviewsResponse.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
ListPreviewsResponse.Builder

This builder for chaining.

build()

public ListPreviewsResponse build()
Returns
Type Description
ListPreviewsResponse

buildPartial()

public ListPreviewsResponse buildPartial()
Returns
Type Description
ListPreviewsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPreviewsResponse.Builder clearNextPageToken()

Token to be supplied to the next ListPreviews request via page_token to obtain the next set of results.

string next_page_token = 2;

Returns
Type Description
ListPreviewsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreviews()

public ListPreviewsResponse.Builder clearPreviews()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Returns
Type Description
ListPreviewsResponse.Builder

clearUnreachable()

public ListPreviewsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListPreviewsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPreviewsResponse getDefaultInstanceForType()
Returns
Type Description
ListPreviewsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to be supplied to the next ListPreviews request via page_token to obtain the next set of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to be supplied to the next ListPreviews request via page_token to obtain the next set of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPreviews(int index)

public Preview getPreviews(int index)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
index int
Returns
Type Description
Preview

getPreviewsBuilder(int index)

public Preview.Builder getPreviewsBuilder(int index)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
index int
Returns
Type Description
Preview.Builder

getPreviewsBuilderList()

public List<Preview.Builder> getPreviewsBuilderList()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Returns
Type Description
List<Builder>

getPreviewsCount()

public int getPreviewsCount()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Returns
Type Description
int

getPreviewsList()

public List<Preview> getPreviewsList()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Returns
Type Description
List<Preview>

getPreviewsOrBuilder(int index)

public PreviewOrBuilder getPreviewsOrBuilder(int index)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
index int
Returns
Type Description
PreviewOrBuilder

getPreviewsOrBuilderList()

public List<? extends PreviewOrBuilder> getPreviewsOrBuilderList()

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

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

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(ListPreviewsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePreviews(int index)

public ListPreviewsResponse.Builder removePreviews(int index)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPreviewsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPreviewsResponse.Builder setNextPageToken(String value)

Token to be supplied to the next ListPreviews request via page_token to obtain the next set of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPreviewsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPreviewsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to be supplied to the next ListPreviews request via page_token to obtain the next set of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPreviewsResponse.Builder

This builder for chaining.

setPreviews(int index, Preview value)

public ListPreviewsResponse.Builder setPreviews(int index, Preview value)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameters
Name Description
index int
value Preview
Returns
Type Description
ListPreviewsResponse.Builder

setPreviews(int index, Preview.Builder builderForValue)

public ListPreviewsResponse.Builder setPreviews(int index, Preview.Builder builderForValue)

List of [Previews][]s.

repeated .google.cloud.config.v1.Preview previews = 1;

Parameters
Name Description
index int
builderForValue Preview.Builder
Returns
Type Description
ListPreviewsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListPreviewsResponse.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
ListPreviewsResponse.Builder

This builder for chaining.