Class Settings.Builder (0.24.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Settings build()
Returns
Type Description
Settings

buildPartial()

public Settings buildPartial()
Returns
Type Description
Settings

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Settings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Settings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Settings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Settings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Settings getDefaultInstanceForType()
Returns
Type Description
Settings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Output only. The name of the resource.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the resource.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for preferenceSet.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Settings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Settings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The preferenceSet to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for preferenceSet to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Settings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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