Class HostsEntryList.Builder (0.11.0)

public static final class HostsEntryList.Builder extends GeneratedMessageV3.Builder<HostsEntryList.Builder> implements HostsEntryListOrBuilder

Hosts content.

Protobuf type google.cloud.migrationcenter.v1.HostsEntryList

Static Methods

getDescriptor()

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

Methods

addAllEntries(Iterable<? extends HostsEntry> values)

public HostsEntryList.Builder addAllEntries(Iterable<? extends HostsEntry> values)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.HostsEntry>
Returns
TypeDescription
HostsEntryList.Builder

addEntries(HostsEntry value)

public HostsEntryList.Builder addEntries(HostsEntry value)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
valueHostsEntry
Returns
TypeDescription
HostsEntryList.Builder

addEntries(HostsEntry.Builder builderForValue)

public HostsEntryList.Builder addEntries(HostsEntry.Builder builderForValue)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
builderForValueHostsEntry.Builder
Returns
TypeDescription
HostsEntryList.Builder

addEntries(int index, HostsEntry value)

public HostsEntryList.Builder addEntries(int index, HostsEntry value)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameters
NameDescription
indexint
valueHostsEntry
Returns
TypeDescription
HostsEntryList.Builder

addEntries(int index, HostsEntry.Builder builderForValue)

public HostsEntryList.Builder addEntries(int index, HostsEntry.Builder builderForValue)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameters
NameDescription
indexint
builderForValueHostsEntry.Builder
Returns
TypeDescription
HostsEntryList.Builder

addEntriesBuilder()

public HostsEntry.Builder addEntriesBuilder()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
HostsEntry.Builder

addEntriesBuilder(int index)

public HostsEntry.Builder addEntriesBuilder(int index)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HostsEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HostsEntryList build()
Returns
TypeDescription
HostsEntryList

buildPartial()

public HostsEntryList buildPartial()
Returns
TypeDescription
HostsEntryList

clear()

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

clearEntries()

public HostsEntryList.Builder clearEntries()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
HostsEntryList.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public HostsEntryList getDefaultInstanceForType()
Returns
TypeDescription
HostsEntryList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntries(int index)

public HostsEntry getEntries(int index)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HostsEntry

getEntriesBuilder(int index)

public HostsEntry.Builder getEntriesBuilder(int index)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HostsEntry.Builder

getEntriesBuilderList()

public List<HostsEntry.Builder> getEntriesBuilderList()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
List<Builder>

getEntriesCount()

public int getEntriesCount()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
int

getEntriesList()

public List<HostsEntry> getEntriesList()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
List<HostsEntry>

getEntriesOrBuilder(int index)

public HostsEntryOrBuilder getEntriesOrBuilder(int index)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HostsEntryOrBuilder

getEntriesOrBuilderList()

public List<? extends HostsEntryOrBuilder> getEntriesOrBuilderList()

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.HostsEntryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HostsEntryList other)

public HostsEntryList.Builder mergeFrom(HostsEntryList other)
Parameter
NameDescription
otherHostsEntryList
Returns
TypeDescription
HostsEntryList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEntries(int index)

public HostsEntryList.Builder removeEntries(int index)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HostsEntryList.Builder

setEntries(int index, HostsEntry value)

public HostsEntryList.Builder setEntries(int index, HostsEntry value)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameters
NameDescription
indexint
valueHostsEntry
Returns
TypeDescription
HostsEntryList.Builder

setEntries(int index, HostsEntry.Builder builderForValue)

public HostsEntryList.Builder setEntries(int index, HostsEntry.Builder builderForValue)

Hosts entries.

repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;

Parameters
NameDescription
indexint
builderForValueHostsEntry.Builder
Returns
TypeDescription
HostsEntryList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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