Class ProjectSettings.Builder (1.11.0)

public static final class ProjectSettings.Builder extends GeneratedMessageV3.Builder<ProjectSettings.Builder> implements ProjectSettingsOrBuilder

The Artifact Registry settings that apply to a Project.

Protobuf type google.devtools.artifactregistry.v1.ProjectSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectSettings build()
Returns
TypeDescription
ProjectSettings

buildPartial()

public ProjectSettings buildPartial()
Returns
TypeDescription
ProjectSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLegacyRedirectionState()

public ProjectSettings.Builder clearLegacyRedirectionState()

The redirection state of the legacy repositories in this project.

.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2;

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

clearName()

public ProjectSettings.Builder clearName()

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

string name = 1;

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ProjectSettings getDefaultInstanceForType()
Returns
TypeDescription
ProjectSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLegacyRedirectionState()

public ProjectSettings.RedirectionState getLegacyRedirectionState()

The redirection state of the legacy repositories in this project.

.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2;

Returns
TypeDescription
ProjectSettings.RedirectionState

The legacyRedirectionState.

getLegacyRedirectionStateValue()

public int getLegacyRedirectionStateValue()

The redirection state of the legacy repositories in this project.

.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for legacyRedirectionState.

getName()

public String getName()

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProjectSettings other)

public ProjectSettings.Builder mergeFrom(ProjectSettings other)
Parameter
NameDescription
otherProjectSettings
Returns
TypeDescription
ProjectSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLegacyRedirectionState(ProjectSettings.RedirectionState value)

public ProjectSettings.Builder setLegacyRedirectionState(ProjectSettings.RedirectionState value)

The redirection state of the legacy repositories in this project.

.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2;

Parameter
NameDescription
valueProjectSettings.RedirectionState

The legacyRedirectionState to set.

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

setLegacyRedirectionStateValue(int value)

public ProjectSettings.Builder setLegacyRedirectionStateValue(int value)

The redirection state of the legacy repositories in this project.

.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for legacyRedirectionState to set.

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

setName(String value)

public ProjectSettings.Builder setName(String value)

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProjectSettings.Builder setNameBytes(ByteString value)

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ProjectSettings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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