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
Methods
public Package.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Package buildPartial()
Returns
public Package.Builder clear()
Returns
Overrides
public Package.Builder clearCreateTime()
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Package.Builder clearDisplayName()
The display name of the package.
string display_name = 2;
Returns
public Package.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Package.Builder clearName()
The name of the package, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
string name = 1;
Returns
public Package.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public Package.Builder clone()
Returns
Overrides
public Timestamp getCreateTime()
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Timestamp.Builder getCreateTimeBuilder()
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Package getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getDisplayName()
The display name of the package.
string display_name = 2;
Returns
Type | Description |
String | The displayName.
|
public ByteString getDisplayNameBytes()
The display name of the package.
string display_name = 2;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
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.
|
public ByteString getNameBytes()
The name of the package, for example:
"projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
string name = 1;
Returns
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
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
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
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Package.Builder mergeCreateTime(Timestamp value)
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public Package.Builder mergeFrom(Package other)
Parameter
Returns
public Package.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Package.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Package.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public Package.Builder setCreateTime(Timestamp value)
The time when the package was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
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
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
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
public Package.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
public Package.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Package.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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