- 1.50.0 (latest)
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 0.5.0
- 0.4.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Package.BuilderImplements
PackageOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Package.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Package.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Package.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Package.Builder |
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 |