Class ProjectSettings.Builder (1.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectSettings build()
Returns
Type Description
ProjectSettings

buildPartial()

public ProjectSettings buildPartial()
Returns
Type Description
ProjectSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProjectSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProjectSettings.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ProjectSettings getDefaultInstanceForType()
Returns
Type Description
ProjectSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProjectSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The legacyRedirectionState to set.

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

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

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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