Class ListPreferenceSetsResponse.Builder (0.10.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.PreferenceSet>
Returns
TypeDescription
ListPreferenceSetsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListPreferenceSetsResponse.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
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
NameDescription
valuePreferenceSet
Returns
TypeDescription
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
NameDescription
builderForValuePreferenceSet.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePreferenceSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePreferenceSet.Builder
Returns
TypeDescription
ListPreferenceSetsResponse.Builder

addPreferenceSetsBuilder()

public PreferenceSet.Builder addPreferenceSetsBuilder()

The list of PreferenceSets

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PreferenceSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPreferenceSetsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListPreferenceSetsResponse.Builder

This builder for chaining.

build()

public ListPreferenceSetsResponse build()
Returns
TypeDescription
ListPreferenceSetsResponse

buildPartial()

public ListPreferenceSetsResponse buildPartial()
Returns
TypeDescription
ListPreferenceSetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreferenceSets()

public ListPreferenceSetsResponse.Builder clearPreferenceSets()

The list of PreferenceSets

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

Returns
TypeDescription
ListPreferenceSetsResponse.Builder

clearUnreachable()

public ListPreferenceSetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListPreferenceSetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPreferenceSetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPreferenceSetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PreferenceSet

getPreferenceSetsBuilder(int index)

public PreferenceSet.Builder getPreferenceSetsBuilder(int index)

The list of PreferenceSets

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PreferenceSet.Builder

getPreferenceSetsBuilderList()

public List<PreferenceSet.Builder> getPreferenceSetsBuilderList()

The list of PreferenceSets

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

Returns
TypeDescription
List<Builder>

getPreferenceSetsCount()

public int getPreferenceSetsCount()

The list of PreferenceSets

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

Returns
TypeDescription
int

getPreferenceSetsList()

public List<PreferenceSet> getPreferenceSetsList()

The list of PreferenceSets

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

Returns
TypeDescription
List<PreferenceSet>

getPreferenceSetsOrBuilder(int index)

public PreferenceSetOrBuilder getPreferenceSetsOrBuilder(int index)

The list of PreferenceSets

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PreferenceSetOrBuilder

getPreferenceSetsOrBuilderList()

public List<? extends PreferenceSetOrBuilder> getPreferenceSetsOrBuilderList()

The list of PreferenceSets

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

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

public ListPreferenceSetsResponse.Builder mergeFrom(ListPreferenceSetsResponse other)
Parameter
NameDescription
otherListPreferenceSetsResponse
Returns
TypeDescription
ListPreferenceSetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePreferenceSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePreferenceSet.Builder
Returns
TypeDescription
ListPreferenceSetsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListPreferenceSetsResponse.Builder

This builder for chaining.