public static final class CreateAttachmentRequest.Builder extends GeneratedMessageV3.Builder<CreateAttachmentRequest.Builder> implements CreateAttachmentRequestOrBuilder
The request to create a new attachment.
Protobuf type google.devtools.artifactregistry.v1.CreateAttachmentRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public CreateAttachmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateAttachmentRequest build()
public CreateAttachmentRequest buildPartial()
public CreateAttachmentRequest.Builder clear()
Overrides
public CreateAttachmentRequest.Builder clearAttachment()
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest.Builder clearAttachmentId()
Required. The attachment id to use for this attachment.
string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateAttachmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CreateAttachmentRequest.Builder clearParent()
Required. The name of the parent resource where the attachment will be
created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateAttachmentRequest.Builder clone()
Overrides
public Attachment getAttachment()
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Attachment |
The attachment.
|
public Attachment.Builder getAttachmentBuilder()
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public String getAttachmentId()
Required. The attachment id to use for this attachment.
string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The attachmentId.
|
public ByteString getAttachmentIdBytes()
Required. The attachment id to use for this attachment.
string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for attachmentId.
|
public AttachmentOrBuilder getAttachmentOrBuilder()
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getParent()
Required. The name of the parent resource where the attachment will be
created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
public ByteString getParentBytes()
Required. The name of the parent resource where the attachment will be
created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
public boolean hasAttachment()
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the attachment field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CreateAttachmentRequest.Builder mergeAttachment(Attachment value)
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest.Builder mergeFrom(CreateAttachmentRequest other)
public CreateAttachmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateAttachmentRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final CreateAttachmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public CreateAttachmentRequest.Builder setAttachment(Attachment value)
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest.Builder setAttachment(Attachment.Builder builderForValue)
Required. The attachment to be created.
.google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateAttachmentRequest.Builder setAttachmentId(String value)
Required. The attachment id to use for this attachment.
string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The attachmentId to set.
|
public CreateAttachmentRequest.Builder setAttachmentIdBytes(ByteString value)
Required. The attachment id to use for this attachment.
string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for attachmentId to set.
|
public CreateAttachmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateAttachmentRequest.Builder setParent(String value)
Required. The name of the parent resource where the attachment will be
created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
public CreateAttachmentRequest.Builder setParentBytes(ByteString value)
Required. The name of the parent resource where the attachment will be
created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
public CreateAttachmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CreateAttachmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides