Class UploadedNpmPackage.Builder (3.49.0)

public static final class UploadedNpmPackage.Builder extends GeneratedMessageV3.Builder<UploadedNpmPackage.Builder> implements UploadedNpmPackageOrBuilder

An npm package uploaded to Artifact Registry using the NpmPackage directive.

Protobuf type google.devtools.cloudbuild.v1.UploadedNpmPackage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UploadedNpmPackage build()
Returns
Type Description
UploadedNpmPackage

buildPartial()

public UploadedNpmPackage buildPartial()
Returns
Type Description
UploadedNpmPackage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileHashes()

public UploadedNpmPackage.Builder clearFileHashes()

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Returns
Type Description
UploadedNpmPackage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPushTiming()

public UploadedNpmPackage.Builder clearPushTiming()

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UploadedNpmPackage.Builder

clearUri()

public UploadedNpmPackage.Builder clearUri()

URI of the uploaded npm package.

string uri = 1;

Returns
Type Description
UploadedNpmPackage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UploadedNpmPackage getDefaultInstanceForType()
Returns
Type Description
UploadedNpmPackage

getDescriptorForType()

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

getFileHashes()

public FileHashes getFileHashes()

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Returns
Type Description
FileHashes

The fileHashes.

getFileHashesBuilder()

public FileHashes.Builder getFileHashesBuilder()

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Returns
Type Description
FileHashes.Builder

getFileHashesOrBuilder()

public FileHashesOrBuilder getFileHashesOrBuilder()

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Returns
Type Description
FileHashesOrBuilder

getPushTiming()

public TimeSpan getPushTiming()

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimeSpan

The pushTiming.

getPushTimingBuilder()

public TimeSpan.Builder getPushTimingBuilder()

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimeSpan.Builder

getPushTimingOrBuilder()

public TimeSpanOrBuilder getPushTimingOrBuilder()

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimeSpanOrBuilder

getUri()

public String getUri()

URI of the uploaded npm package.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of the uploaded npm package.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasFileHashes()

public boolean hasFileHashes()

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Returns
Type Description
boolean

Whether the fileHashes field is set.

hasPushTiming()

public boolean hasPushTiming()

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the pushTiming field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFileHashes(FileHashes value)

public UploadedNpmPackage.Builder mergeFileHashes(FileHashes value)

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Parameter
Name Description
value FileHashes
Returns
Type Description
UploadedNpmPackage.Builder

mergeFrom(UploadedNpmPackage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePushTiming(TimeSpan value)

public UploadedNpmPackage.Builder mergePushTiming(TimeSpan value)

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TimeSpan
Returns
Type Description
UploadedNpmPackage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileHashes(FileHashes value)

public UploadedNpmPackage.Builder setFileHashes(FileHashes value)

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Parameter
Name Description
value FileHashes
Returns
Type Description
UploadedNpmPackage.Builder

setFileHashes(FileHashes.Builder builderForValue)

public UploadedNpmPackage.Builder setFileHashes(FileHashes.Builder builderForValue)

Hash types and values of the npm package.

.google.devtools.cloudbuild.v1.FileHashes file_hashes = 2;

Parameter
Name Description
builderForValue FileHashes.Builder
Returns
Type Description
UploadedNpmPackage.Builder

setPushTiming(TimeSpan value)

public UploadedNpmPackage.Builder setPushTiming(TimeSpan value)

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TimeSpan
Returns
Type Description
UploadedNpmPackage.Builder

setPushTiming(TimeSpan.Builder builderForValue)

public UploadedNpmPackage.Builder setPushTiming(TimeSpan.Builder builderForValue)

Output only. Stores timing information for pushing the specified artifact.

.google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TimeSpan.Builder
Returns
Type Description
UploadedNpmPackage.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public UploadedNpmPackage.Builder setUri(String value)

URI of the uploaded npm package.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
UploadedNpmPackage.Builder

This builder for chaining.

setUriBytes(ByteString value)

public UploadedNpmPackage.Builder setUriBytes(ByteString value)

URI of the uploaded npm package.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
UploadedNpmPackage.Builder

This builder for chaining.