Class ListSitesResponse.Builder (0.1.0)

public static final class ListSitesResponse.Builder extends GeneratedMessageV3.Builder<ListSitesResponse.Builder> implements ListSitesResponseOrBuilder

A list of sites.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse

Static Methods

getDescriptor()

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

Methods

addAllSites(Iterable<? extends Site> values)

public ListSitesResponse.Builder addAllSites(Iterable<? extends Site> values)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.Site>
Returns
Type Description
ListSitesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSites(Site value)

public ListSitesResponse.Builder addSites(Site value)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
value Site
Returns
Type Description
ListSitesResponse.Builder

addSites(Site.Builder builderForValue)

public ListSitesResponse.Builder addSites(Site.Builder builderForValue)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
builderForValue Site.Builder
Returns
Type Description
ListSitesResponse.Builder

addSites(int index, Site value)

public ListSitesResponse.Builder addSites(int index, Site value)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameters
Name Description
index int
value Site
Returns
Type Description
ListSitesResponse.Builder

addSites(int index, Site.Builder builderForValue)

public ListSitesResponse.Builder addSites(int index, Site.Builder builderForValue)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameters
Name Description
index int
builderForValue Site.Builder
Returns
Type Description
ListSitesResponse.Builder

addSitesBuilder()

public Site.Builder addSitesBuilder()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
Site.Builder

addSitesBuilder(int index)

public Site.Builder addSitesBuilder(int index)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
index int
Returns
Type Description
Site.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListSitesResponse build()
Returns
Type Description
ListSitesResponse

buildPartial()

public ListSitesResponse buildPartial()
Returns
Type Description
ListSitesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSitesResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListSitesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSites()

public ListSitesResponse.Builder clearSites()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
ListSitesResponse.Builder

clearUnreachable()

public ListSitesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListSitesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSitesResponse getDefaultInstanceForType()
Returns
Type Description
ListSitesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSites(int index)

public Site getSites(int index)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
index int
Returns
Type Description
Site

getSitesBuilder(int index)

public Site.Builder getSitesBuilder(int index)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
index int
Returns
Type Description
Site.Builder

getSitesBuilderList()

public List<Site.Builder> getSitesBuilderList()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
List<Builder>

getSitesCount()

public int getSitesCount()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
int

getSitesList()

public List<Site> getSitesList()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
List<Site>

getSitesOrBuilder(int index)

public SiteOrBuilder getSitesOrBuilder(int index)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
index int
Returns
Type Description
SiteOrBuilder

getSitesOrBuilderList()

public List<? extends SiteOrBuilder> getSitesOrBuilderList()

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Returns
Type Description
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSites(int index)

public ListSitesResponse.Builder removeSites(int index)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSitesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSitesResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListSitesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSitesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListSitesResponse.Builder

This builder for chaining.

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

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

setSites(int index, Site value)

public ListSitesResponse.Builder setSites(int index, Site value)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameters
Name Description
index int
value Site
Returns
Type Description
ListSitesResponse.Builder

setSites(int index, Site.Builder builderForValue)

public ListSitesResponse.Builder setSites(int index, Site.Builder builderForValue)

The list of sites.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1;

Parameters
Name Description
index int
builderForValue Site.Builder
Returns
Type Description
ListSitesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.