Class Package.Builder (1.2.7)

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

Packages are named collections of versions.

Protobuf type google.devtools.artifactregistry.v1.Package

Implements

PackageOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Package build()
Returns
TypeDescription
Package

buildPartial()

public Package buildPartial()
Returns
TypeDescription
Package

clear()

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

clearCreateTime()

public Package.Builder clearCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Package.Builder

clearDisplayName()

public Package.Builder clearDisplayName()

The display name of the package.

string display_name = 2;

Returns
TypeDescription
Package.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Package.Builder clearName()

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". If the package ID part contains slashes, the slashes are escaped.

string name = 1;

Returns
TypeDescription
Package.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Package.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Package.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Package getDefaultInstanceForType()
Returns
TypeDescription
Package

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the package.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the package.

string display_name = 2;

Returns
TypeDescription
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". If the package ID part contains slashes, the slashes are escaped.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". If the package ID part contains slashes, the slashes are escaped.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time when the package was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Package.Builder

mergeFrom(Package other)

public Package.Builder mergeFrom(Package other)
Parameter
NameDescription
otherPackage
Returns
TypeDescription
Package.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Package.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Package.Builder

setDisplayName(String value)

public Package.Builder setDisplayName(String value)

The display name of the package.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Package.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Package.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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". If the package ID part contains slashes, the slashes are escaped.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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". If the package ID part contains slashes, the slashes are escaped.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Package.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Package.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Package.Builder