Class ListPreviewsResponse.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.config.v1.Preview>
Returns
TypeDescription
ListPreviewsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListPreviewsResponse.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
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
NameDescription
valuePreview
Returns
TypeDescription
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
NameDescription
builderForValuePreview.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePreview
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePreview.Builder
Returns
TypeDescription
ListPreviewsResponse.Builder

addPreviewsBuilder()

public Preview.Builder addPreviewsBuilder()

List of [Previews][]s.

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

Returns
TypeDescription
Preview.Builder

addPreviewsBuilder(int index)

public Preview.Builder addPreviewsBuilder(int index)

List of [Previews][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Preview.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPreviewsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListPreviewsResponse.Builder

This builder for chaining.

build()

public ListPreviewsResponse build()
Returns
TypeDescription
ListPreviewsResponse

buildPartial()

public ListPreviewsResponse buildPartial()
Returns
TypeDescription
ListPreviewsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreviews()

public ListPreviewsResponse.Builder clearPreviews()

List of [Previews][]s.

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

Returns
TypeDescription
ListPreviewsResponse.Builder

clearUnreachable()

public ListPreviewsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListPreviewsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPreviewsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPreviewsResponse

getDescriptorForType()

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

getPreviewsBuilder(int index)

public Preview.Builder getPreviewsBuilder(int index)

List of [Previews][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Preview.Builder

getPreviewsBuilderList()

public List<Preview.Builder> getPreviewsBuilderList()

List of [Previews][]s.

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

Returns
TypeDescription
List<Builder>

getPreviewsCount()

public int getPreviewsCount()

List of [Previews][]s.

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

Returns
TypeDescription
int

getPreviewsList()

public List<Preview> getPreviewsList()

List of [Previews][]s.

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

Returns
TypeDescription
List<Preview>

getPreviewsOrBuilder(int index)

public PreviewOrBuilder getPreviewsOrBuilder(int index)

List of [Previews][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PreviewOrBuilder

getPreviewsOrBuilderList()

public List<? extends PreviewOrBuilder> getPreviewsOrBuilderList()

List of [Previews][]s.

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

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

public ListPreviewsResponse.Builder mergeFrom(ListPreviewsResponse other)
Parameter
NameDescription
otherListPreviewsResponse
Returns
TypeDescription
ListPreviewsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePreview
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePreview.Builder
Returns
TypeDescription
ListPreviewsResponse.Builder

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

public ListPreviewsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListPreviewsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListPreviewsResponse.Builder

This builder for chaining.