Class ListPreferenceSetsResponse.Builder (0.28.0)

public static final class ListPreferenceSetsResponse.Builder extends GeneratedMessageV3.Builder<ListPreferenceSetsResponse.Builder> implements ListPreferenceSetsResponseOrBuilder

Response message for listing preference sets.

Protobuf type google.cloud.migrationcenter.v1.ListPreferenceSetsResponse

Static Methods

getDescriptor()

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

Methods

addAllPreferenceSets(Iterable<? extends PreferenceSet> values)

public ListPreferenceSetsResponse.Builder addAllPreferenceSets(Iterable<? extends PreferenceSet> values)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.PreferenceSet>
Returns
Type Description
ListPreferenceSetsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addPreferenceSets(PreferenceSet value)

public ListPreferenceSetsResponse.Builder addPreferenceSets(PreferenceSet value)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
value PreferenceSet
Returns
Type Description
ListPreferenceSetsResponse.Builder

addPreferenceSets(PreferenceSet.Builder builderForValue)

public ListPreferenceSetsResponse.Builder addPreferenceSets(PreferenceSet.Builder builderForValue)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
builderForValue PreferenceSet.Builder
Returns
Type Description
ListPreferenceSetsResponse.Builder

addPreferenceSets(int index, PreferenceSet value)

public ListPreferenceSetsResponse.Builder addPreferenceSets(int index, PreferenceSet value)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameters
Name Description
index int
value PreferenceSet
Returns
Type Description
ListPreferenceSetsResponse.Builder

addPreferenceSets(int index, PreferenceSet.Builder builderForValue)

public ListPreferenceSetsResponse.Builder addPreferenceSets(int index, PreferenceSet.Builder builderForValue)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameters
Name Description
index int
builderForValue PreferenceSet.Builder
Returns
Type Description
ListPreferenceSetsResponse.Builder

addPreferenceSetsBuilder()

public PreferenceSet.Builder addPreferenceSetsBuilder()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
PreferenceSet.Builder

addPreferenceSetsBuilder(int index)

public PreferenceSet.Builder addPreferenceSetsBuilder(int index)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
PreferenceSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListPreferenceSetsResponse build()
Returns
Type Description
ListPreferenceSetsResponse

buildPartial()

public ListPreferenceSetsResponse buildPartial()
Returns
Type Description
ListPreferenceSetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPreferenceSetsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListPreferenceSetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreferenceSets()

public ListPreferenceSetsResponse.Builder clearPreferenceSets()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
ListPreferenceSetsResponse.Builder

clearUnreachable()

public ListPreferenceSetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListPreferenceSetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPreferenceSetsResponse getDefaultInstanceForType()
Returns
Type Description
ListPreferenceSetsResponse

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.

getPreferenceSets(int index)

public PreferenceSet getPreferenceSets(int index)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
PreferenceSet

getPreferenceSetsBuilder(int index)

public PreferenceSet.Builder getPreferenceSetsBuilder(int index)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
PreferenceSet.Builder

getPreferenceSetsBuilderList()

public List<PreferenceSet.Builder> getPreferenceSetsBuilderList()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
List<Builder>

getPreferenceSetsCount()

public int getPreferenceSetsCount()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
int

getPreferenceSetsList()

public List<PreferenceSet> getPreferenceSetsList()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
List<PreferenceSet>

getPreferenceSetsOrBuilder(int index)

public PreferenceSetOrBuilder getPreferenceSetsOrBuilder(int index)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
PreferenceSetOrBuilder

getPreferenceSetsOrBuilderList()

public List<? extends PreferenceSetOrBuilder> getPreferenceSetsOrBuilderList()

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.PreferenceSetOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePreferenceSets(int index)

public ListPreferenceSetsResponse.Builder removePreferenceSets(int index)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPreferenceSetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setPreferenceSets(int index, PreferenceSet value)

public ListPreferenceSetsResponse.Builder setPreferenceSets(int index, PreferenceSet value)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameters
Name Description
index int
value PreferenceSet
Returns
Type Description
ListPreferenceSetsResponse.Builder

setPreferenceSets(int index, PreferenceSet.Builder builderForValue)

public ListPreferenceSetsResponse.Builder setPreferenceSets(int index, PreferenceSet.Builder builderForValue)

The list of PreferenceSets

repeated .google.cloud.migrationcenter.v1.PreferenceSet preference_sets = 1;

Parameters
Name Description
index int
builderForValue PreferenceSet.Builder
Returns
Type Description
ListPreferenceSetsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.