Class Settings.Builder (0.17.0)

public static final class Settings.Builder extends GeneratedMessageV3.Builder<Settings.Builder> implements SettingsOrBuilder

Describes the Migration Center settings related to the project.

Protobuf type google.cloud.migrationcenter.v1.Settings

Implements

SettingsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Settings build()
Returns
TypeDescription
Settings

buildPartial()

public Settings buildPartial()
Returns
TypeDescription
Settings

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Settings.Builder clearName()

Output only. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Settings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreferenceSet()

public Settings.Builder clearPreferenceSet()

The preference set used by default for a project.

string preference_set = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Settings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Settings getDefaultInstanceForType()
Returns
TypeDescription
Settings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPreferenceSet()

public String getPreferenceSet()

The preference set used by default for a project.

string preference_set = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The preferenceSet.

getPreferenceSetBytes()

public ByteString getPreferenceSetBytes()

The preference set used by default for a project.

string preference_set = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for preferenceSet.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Settings other)

public Settings.Builder mergeFrom(Settings other)
Parameter
NameDescription
otherSettings
Returns
TypeDescription
Settings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Settings.Builder setName(String value)

Output only. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Settings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Settings.Builder setNameBytes(ByteString value)

Output only. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Settings.Builder

This builder for chaining.

setPreferenceSet(String value)

public Settings.Builder setPreferenceSet(String value)

The preference set used by default for a project.

string preference_set = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The preferenceSet to set.

Returns
TypeDescription
Settings.Builder

This builder for chaining.

setPreferenceSetBytes(ByteString value)

public Settings.Builder setPreferenceSetBytes(ByteString value)

The preference set used by default for a project.

string preference_set = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for preferenceSet to set.

Returns
TypeDescription
Settings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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