Class GoModule.Builder (1.62.0)

public static final class GoModule.Builder extends GeneratedMessageV3.Builder<GoModule.Builder> implements GoModuleOrBuilder

GoModule represents a Go module.

Protobuf type google.devtools.artifactregistry.v1.GoModule

Implements

GoModuleOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoModule build()
Returns
Type Description
GoModule

buildPartial()

public GoModule buildPartial()
Returns
Type Description
GoModule

clear()

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

clearCreateTime()

public GoModule.Builder clearCreateTime()

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoModule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GoModule.Builder clearName()

The resource name of a Go module.

string name = 1;

Returns
Type Description
GoModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public GoModule.Builder clearUpdateTime()

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoModule.Builder

clearVersion()

public GoModule.Builder clearVersion()

The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.

string version = 2;

Returns
Type Description
GoModule.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public GoModule getDefaultInstanceForType()
Returns
Type Description
GoModule

getDescriptorForType()

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

getName()

public String getName()

The resource name of a Go module.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of a Go module.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVersion()

public String getVersion()

The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 GoModule.Builder mergeCreateTime(Timestamp value)

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoModule.Builder

mergeFrom(GoModule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public GoModule.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoModule.Builder

setCreateTime(Timestamp value)

public GoModule.Builder setCreateTime(Timestamp value)

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoModule.Builder

setCreateTime(Timestamp.Builder builderForValue)

public GoModule.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the Go module is created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GoModule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GoModule.Builder setName(String value)

The resource name of a Go module.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GoModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GoModule.Builder setNameBytes(ByteString value)

The resource name of a Go module.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GoModule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public GoModule.Builder setUpdateTime(Timestamp value)

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoModule.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public GoModule.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the Go module is updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GoModule.Builder

setVersion(String value)

public GoModule.Builder setVersion(String value)

The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
GoModule.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public GoModule.Builder setVersionBytes(ByteString value)

The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
GoModule.Builder

This builder for chaining.