Class Package.Builder (1.46.0)

public static final class Package.Builder extends GeneratedMessageV3.Builder<Package.Builder> implements PackageOrBuilder

Packages are named collections of versions.

Protobuf type google.devtools.artifactregistry.v1beta2.Package

Implements

PackageOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Package build()
Returns
Type Description
Package

buildPartial()

public Package buildPartial()
Returns
Type Description
Package

clear()

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

clearCreateTime()

public Package.Builder clearCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Package.Builder

clearDisplayName()

public Package.Builder clearDisplayName()

The display name of the package.

string display_name = 2;

Returns
Type Description
Package.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Package.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Package.Builder
Overrides

clearName()

public Package.Builder clearName()

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

string name = 1;

Returns
Type Description
Package.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Package.Builder clearUpdateTime()

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Package.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Package getDefaultInstanceForType()
Returns
Type Description
Package

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The display name of the package.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the package.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Package.Builder mergeCreateTime(Timestamp value)

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Package.Builder

mergeFrom(Package other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Package.Builder mergeUpdateTime(Timestamp value)

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Package.Builder

setCreateTime(Timestamp value)

public Package.Builder setCreateTime(Timestamp value)

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Package.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Package.Builder setCreateTime(Timestamp.Builder builderForValue)

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Package.Builder

setDisplayName(String value)

public Package.Builder setDisplayName(String value)

The display name of the package.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Package.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Package.Builder setDisplayNameBytes(ByteString value)

The display name of the package.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Package.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Package.Builder setName(String value)

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Package.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Package.Builder setNameBytes(ByteString value)

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Package.Builder

This builder for chaining.

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

public Package.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Package.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Package.Builder setUpdateTime(Timestamp value)

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Package.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Package.Builder setUpdateTime(Timestamp.Builder builderForValue)

The time when the package was last updated. This includes publishing a new version of the package.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Package.Builder