Class UploadedMavenArtifact.Builder (3.9.0)

public static final class UploadedMavenArtifact.Builder extends GeneratedMessageV3.Builder<UploadedMavenArtifact.Builder> implements UploadedMavenArtifactOrBuilder

A Maven artifact uploaded using the MavenArtifact directive.

Protobuf type google.devtools.cloudbuild.v1.UploadedMavenArtifact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UploadedMavenArtifact build()
Returns
TypeDescription
UploadedMavenArtifact

buildPartial()

public UploadedMavenArtifact buildPartial()
Returns
TypeDescription
UploadedMavenArtifact

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileHashes()

public UploadedMavenArtifact.Builder clearFileHashes()

Hash types and values of the Maven Artifact.

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

Returns
TypeDescription
UploadedMavenArtifact.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UploadedMavenArtifact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UploadedMavenArtifact.Builder
Overrides

clearPushTiming()

public UploadedMavenArtifact.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
TypeDescription
UploadedMavenArtifact.Builder

clearUri()

public UploadedMavenArtifact.Builder clearUri()

URI of the uploaded artifact.

string uri = 1;

Returns
TypeDescription
UploadedMavenArtifact.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UploadedMavenArtifact getDefaultInstanceForType()
Returns
TypeDescription
UploadedMavenArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileHashes()

public FileHashes getFileHashes()

Hash types and values of the Maven Artifact.

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

Returns
TypeDescription
FileHashes

The fileHashes.

getFileHashesBuilder()

public FileHashes.Builder getFileHashesBuilder()

Hash types and values of the Maven Artifact.

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

Returns
TypeDescription
FileHashes.Builder

getFileHashesOrBuilder()

public FileHashesOrBuilder getFileHashesOrBuilder()

Hash types and values of the Maven Artifact.

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

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

getUri()

public String getUri()

URI of the uploaded artifact.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of the uploaded artifact.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hasFileHashes()

public boolean hasFileHashes()

Hash types and values of the Maven Artifact.

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

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

Whether the pushTiming field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFileHashes(FileHashes value)

public UploadedMavenArtifact.Builder mergeFileHashes(FileHashes value)

Hash types and values of the Maven Artifact.

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

Parameter
NameDescription
valueFileHashes
Returns
TypeDescription
UploadedMavenArtifact.Builder

mergeFrom(UploadedMavenArtifact other)

public UploadedMavenArtifact.Builder mergeFrom(UploadedMavenArtifact other)
Parameter
NameDescription
otherUploadedMavenArtifact
Returns
TypeDescription
UploadedMavenArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePushTiming(TimeSpan value)

public UploadedMavenArtifact.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
NameDescription
valueTimeSpan
Returns
TypeDescription
UploadedMavenArtifact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UploadedMavenArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UploadedMavenArtifact.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileHashes(FileHashes value)

public UploadedMavenArtifact.Builder setFileHashes(FileHashes value)

Hash types and values of the Maven Artifact.

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

Parameter
NameDescription
valueFileHashes
Returns
TypeDescription
UploadedMavenArtifact.Builder

setFileHashes(FileHashes.Builder builderForValue)

public UploadedMavenArtifact.Builder setFileHashes(FileHashes.Builder builderForValue)

Hash types and values of the Maven Artifact.

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

Parameter
NameDescription
builderForValueFileHashes.Builder
Returns
TypeDescription
UploadedMavenArtifact.Builder

setPushTiming(TimeSpan value)

public UploadedMavenArtifact.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
NameDescription
valueTimeSpan
Returns
TypeDescription
UploadedMavenArtifact.Builder

setPushTiming(TimeSpan.Builder builderForValue)

public UploadedMavenArtifact.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
NameDescription
builderForValueTimeSpan.Builder
Returns
TypeDescription
UploadedMavenArtifact.Builder

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

public UploadedMavenArtifact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UploadedMavenArtifact.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UploadedMavenArtifact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UploadedMavenArtifact.Builder
Overrides

setUri(String value)

public UploadedMavenArtifact.Builder setUri(String value)

URI of the uploaded artifact.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
UploadedMavenArtifact.Builder

This builder for chaining.

setUriBytes(ByteString value)

public UploadedMavenArtifact.Builder setUriBytes(ByteString value)

URI of the uploaded artifact.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
UploadedMavenArtifact.Builder

This builder for chaining.