Class ListReplicationCyclesResponse.Builder (1.22.0)

public static final class ListReplicationCyclesResponse.Builder extends GeneratedMessageV3.Builder<ListReplicationCyclesResponse.Builder> implements ListReplicationCyclesResponseOrBuilder

Response message for 'ListReplicationCycles' request.

Protobuf type google.cloud.vmmigration.v1.ListReplicationCyclesResponse

Static Methods

getDescriptor()

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

Methods

addAllReplicationCycles(Iterable<? extends ReplicationCycle> values)

public ListReplicationCyclesResponse.Builder addAllReplicationCycles(Iterable<? extends ReplicationCycle> values)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.ReplicationCycle>
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addReplicationCycles(ReplicationCycle value)

public ListReplicationCyclesResponse.Builder addReplicationCycles(ReplicationCycle value)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueReplicationCycle
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

addReplicationCycles(ReplicationCycle.Builder builderForValue)

public ListReplicationCyclesResponse.Builder addReplicationCycles(ReplicationCycle.Builder builderForValue)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueReplicationCycle.Builder
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

addReplicationCycles(int index, ReplicationCycle value)

public ListReplicationCyclesResponse.Builder addReplicationCycles(int index, ReplicationCycle value)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueReplicationCycle
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

addReplicationCycles(int index, ReplicationCycle.Builder builderForValue)

public ListReplicationCyclesResponse.Builder addReplicationCycles(int index, ReplicationCycle.Builder builderForValue)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueReplicationCycle.Builder
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

addReplicationCyclesBuilder()

public ReplicationCycle.Builder addReplicationCyclesBuilder()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReplicationCycle.Builder

addReplicationCyclesBuilder(int index)

public ReplicationCycle.Builder addReplicationCyclesBuilder(int index)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReplicationCycle.Builder

addUnreachable(String value)

public ListReplicationCyclesResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListReplicationCyclesResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

build()

public ListReplicationCyclesResponse build()
Returns
TypeDescription
ListReplicationCyclesResponse

buildPartial()

public ListReplicationCyclesResponse buildPartial()
Returns
TypeDescription
ListReplicationCyclesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListReplicationCyclesResponse.Builder clearNextPageToken()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplicationCycles()

public ListReplicationCyclesResponse.Builder clearReplicationCycles()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

clearUnreachable()

public ListReplicationCyclesResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListReplicationCyclesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListReplicationCyclesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getReplicationCycles(int index)

public ReplicationCycle getReplicationCycles(int index)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReplicationCycle

getReplicationCyclesBuilder(int index)

public ReplicationCycle.Builder getReplicationCyclesBuilder(int index)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReplicationCycle.Builder

getReplicationCyclesBuilderList()

public List<ReplicationCycle.Builder> getReplicationCyclesBuilderList()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getReplicationCyclesCount()

public int getReplicationCyclesCount()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getReplicationCyclesList()

public List<ReplicationCycle> getReplicationCyclesList()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ReplicationCycle>

getReplicationCyclesOrBuilder(int index)

public ReplicationCycleOrBuilder getReplicationCyclesOrBuilder(int index)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReplicationCycleOrBuilder

getReplicationCyclesOrBuilderList()

public List<? extends ReplicationCycleOrBuilder> getReplicationCyclesOrBuilderList()

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

public ListReplicationCyclesResponse.Builder mergeFrom(ListReplicationCyclesResponse other)
Parameter
NameDescription
otherListReplicationCyclesResponse
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReplicationCycles(int index)

public ListReplicationCyclesResponse.Builder removeReplicationCycles(int index)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListReplicationCyclesResponse.Builder setNextPageToken(String value)

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReplicationCyclesResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.

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

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

setReplicationCycles(int index, ReplicationCycle value)

public ListReplicationCyclesResponse.Builder setReplicationCycles(int index, ReplicationCycle value)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueReplicationCycle
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

setReplicationCycles(int index, ReplicationCycle.Builder builderForValue)

public ListReplicationCyclesResponse.Builder setReplicationCycles(int index, ReplicationCycle.Builder builderForValue)

Output only. The list of replication cycles response.

repeated .google.cloud.vmmigration.v1.ReplicationCycle replication_cycles = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueReplicationCycle.Builder
Returns
TypeDescription
ListReplicationCyclesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListReplicationCyclesResponse.Builder setUnreachable(int index, String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListReplicationCyclesResponse.Builder

This builder for chaining.