Class ListRoutesResponse.Builder (1.30.0)

public static final class ListRoutesResponse.Builder extends GeneratedMessageV3.Builder<ListRoutesResponse.Builder> implements ListRoutesResponseOrBuilder

route list response

Protobuf type google.cloud.datastream.v1alpha1.ListRoutesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRoutes(Iterable<? extends Route> values)

public ListRoutesResponse.Builder addAllRoutes(Iterable<? extends Route> values)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datastream.v1alpha1.Route>
Returns
TypeDescription
ListRoutesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoutes(Route value)

public ListRoutesResponse.Builder addRoutes(Route value)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
valueRoute
Returns
TypeDescription
ListRoutesResponse.Builder

addRoutes(Route.Builder builderForValue)

public ListRoutesResponse.Builder addRoutes(Route.Builder builderForValue)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
builderForValueRoute.Builder
Returns
TypeDescription
ListRoutesResponse.Builder

addRoutes(int index, Route value)

public ListRoutesResponse.Builder addRoutes(int index, Route value)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameters
NameDescription
indexint
valueRoute
Returns
TypeDescription
ListRoutesResponse.Builder

addRoutes(int index, Route.Builder builderForValue)

public ListRoutesResponse.Builder addRoutes(int index, Route.Builder builderForValue)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameters
NameDescription
indexint
builderForValueRoute.Builder
Returns
TypeDescription
ListRoutesResponse.Builder

addRoutesBuilder()

public Route.Builder addRoutesBuilder()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
Route.Builder

addRoutesBuilder(int index)

public Route.Builder addRoutesBuilder(int index)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Route.Builder

addUnreachable(String value)

public ListRoutesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListRoutesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListRoutesResponse build()
Returns
TypeDescription
ListRoutesResponse

buildPartial()

public ListRoutesResponse buildPartial()
Returns
TypeDescription
ListRoutesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListRoutesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListRoutesResponse.Builder
Overrides

clearNextPageToken()

public ListRoutesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListRoutesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoutes()

public ListRoutesResponse.Builder clearRoutes()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
ListRoutesResponse.Builder

clearUnreachable()

public ListRoutesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListRoutesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRoutesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRoutesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getRoutes(int index)

public Route getRoutes(int index)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Route

getRoutesBuilder(int index)

public Route.Builder getRoutesBuilder(int index)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Route.Builder

getRoutesBuilderList()

public List<Route.Builder> getRoutesBuilderList()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
List<Builder>

getRoutesCount()

public int getRoutesCount()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
int

getRoutesList()

public List<Route> getRoutesList()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
List<Route>

getRoutesOrBuilder(int index)

public RouteOrBuilder getRoutesOrBuilder(int index)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouteOrBuilder

getRoutesOrBuilderList()

public List<? extends RouteOrBuilder> getRoutesOrBuilderList()

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Returns
TypeDescription
List<? extends com.google.cloud.datastream.v1alpha1.RouteOrBuilder>

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

public ListRoutesResponse.Builder mergeFrom(ListRoutesResponse other)
Parameter
NameDescription
otherListRoutesResponse
Returns
TypeDescription
ListRoutesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRoutes(int index)

public ListRoutesResponse.Builder removeRoutes(int index)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListRoutesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRoutesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListRoutesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRoutesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListRoutesResponse.Builder

This builder for chaining.

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

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

setRoutes(int index, Route value)

public ListRoutesResponse.Builder setRoutes(int index, Route value)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameters
NameDescription
indexint
valueRoute
Returns
TypeDescription
ListRoutesResponse.Builder

setRoutes(int index, Route.Builder builderForValue)

public ListRoutesResponse.Builder setRoutes(int index, Route.Builder builderForValue)

List of Routes.

repeated .google.cloud.datastream.v1alpha1.Route routes = 1;

Parameters
NameDescription
indexint
builderForValueRoute.Builder
Returns
TypeDescription
ListRoutesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRoutesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListRoutesResponse.Builder
Overrides

setUnreachable(int index, String value)

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

This builder for chaining.