Class ReplaceArtifactRequest.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplaceArtifactRequest build()
Returns
TypeDescription
ReplaceArtifactRequest

buildPartial()

public ReplaceArtifactRequest buildPartial()
Returns
TypeDescription
ReplaceArtifactRequest

clear()

public ReplaceArtifactRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ReplaceArtifactRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ReplaceArtifactRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ArtifactOrBuilder

getDefaultInstanceForType()

public ReplaceArtifactRequest getDefaultInstanceForType()
Returns
TypeDescription
ReplaceArtifactRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the artifact field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueArtifact
Returns
TypeDescription
ReplaceArtifactRequest.Builder

mergeFrom(ReplaceArtifactRequest other)

public ReplaceArtifactRequest.Builder mergeFrom(ReplaceArtifactRequest other)
Parameter
NameDescription
otherReplaceArtifactRequest
Returns
TypeDescription
ReplaceArtifactRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplaceArtifactRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueArtifact
Returns
TypeDescription
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
NameDescription
builderForValueArtifact.Builder
Returns
TypeDescription
ReplaceArtifactRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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