Class ReplaceArtifactRequest.Builder (0.53.0)

public static final class ReplaceArtifactRequest.Builder extends GeneratedMessageV3.Builder<ReplaceArtifactRequest.Builder> implements ReplaceArtifactRequestOrBuilder

Request message for ReplaceArtifact.

Protobuf type google.cloud.apigeeregistry.v1.ReplaceArtifactRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplaceArtifactRequest build()
Returns
Type Description
ReplaceArtifactRequest

buildPartial()

public ReplaceArtifactRequest buildPartial()
Returns
Type Description
ReplaceArtifactRequest

clear()

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

clearArtifact()

public ReplaceArtifactRequest.Builder clearArtifact()

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplaceArtifactRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getArtifact()

public Artifact getArtifact()

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Artifact

The artifact.

getArtifactBuilder()

public Artifact.Builder getArtifactBuilder()

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Artifact.Builder

getArtifactOrBuilder()

public ArtifactOrBuilder getArtifactOrBuilder()

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ArtifactOrBuilder

getDefaultInstanceForType()

public ReplaceArtifactRequest getDefaultInstanceForType()
Returns
Type Description
ReplaceArtifactRequest

getDescriptorForType()

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

hasArtifact()

public boolean hasArtifact()

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the artifact field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeArtifact(Artifact value)

public ReplaceArtifactRequest.Builder mergeArtifact(Artifact value)

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Artifact
Returns
Type Description
ReplaceArtifactRequest.Builder

mergeFrom(ReplaceArtifactRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArtifact(Artifact value)

public ReplaceArtifactRequest.Builder setArtifact(Artifact value)

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Artifact
Returns
Type Description
ReplaceArtifactRequest.Builder

setArtifact(Artifact.Builder builderForValue)

public ReplaceArtifactRequest.Builder setArtifact(Artifact.Builder builderForValue)

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

.google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Artifact.Builder
Returns
Type Description
ReplaceArtifactRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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