public static final class ListAttachmentsResponse.Builder extends GeneratedMessageV3.Builder<ListAttachmentsResponse.Builder> implements ListAttachmentsResponseOrBuilder
The response from listing attachments.
Protobuf type google.devtools.artifactregistry.v1.ListAttachmentsResponse
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 ListAttachmentsResponse.Builder addAllAttachments(Iterable<? extends Attachment> values)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.devtools.artifactregistry.v1.Attachment>
|
public ListAttachmentsResponse.Builder addAttachments(Attachment value)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder addAttachments(Attachment.Builder builderForValue)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder addAttachments(int index, Attachment value)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder addAttachments(int index, Attachment.Builder builderForValue)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public Attachment.Builder addAttachmentsBuilder()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public Attachment.Builder addAttachmentsBuilder(int index)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
index |
int
|
public ListAttachmentsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListAttachmentsResponse build()
public ListAttachmentsResponse buildPartial()
public ListAttachmentsResponse.Builder clear()
Overrides
public ListAttachmentsResponse.Builder clearAttachments()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListAttachmentsResponse.Builder clearNextPageToken()
The token to retrieve the next page of attachments, or empty if there are
no more attachments to return.
string next_page_token = 2;
public ListAttachmentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListAttachmentsResponse.Builder clone()
Overrides
public Attachment getAttachments(int index)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
index |
int
|
public Attachment.Builder getAttachmentsBuilder(int index)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
index |
int
|
public List<Attachment.Builder> getAttachmentsBuilderList()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public int getAttachmentsCount()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Returns |
Type |
Description |
int |
|
public List<Attachment> getAttachmentsList()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
index |
int
|
public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Returns |
Type |
Description |
List<? extends com.google.devtools.artifactregistry.v1.AttachmentOrBuilder> |
|
public ListAttachmentsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
The token to retrieve the next page of attachments, or empty if there are
no more attachments to return.
string next_page_token = 2;
Returns |
Type |
Description |
String |
The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
The token to retrieve the next page of attachments, or empty if there are
no more attachments to return.
string next_page_token = 2;
Returns |
Type |
Description |
ByteString |
The bytes for nextPageToken.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListAttachmentsResponse.Builder mergeFrom(ListAttachmentsResponse other)
public ListAttachmentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListAttachmentsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ListAttachmentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListAttachmentsResponse.Builder removeAttachments(int index)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
Parameter |
Name |
Description |
index |
int
|
public ListAttachmentsResponse.Builder setAttachments(int index, Attachment value)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder setAttachments(int index, Attachment.Builder builderForValue)
The attachments returned.
repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1;
public ListAttachmentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListAttachmentsResponse.Builder setNextPageToken(String value)
The token to retrieve the next page of attachments, or empty if there are
no more attachments to return.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListAttachmentsResponse.Builder setNextPageTokenBytes(ByteString value)
The token to retrieve the next page of attachments, or empty if there are
no more attachments to return.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for nextPageToken to set.
|
public ListAttachmentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListAttachmentsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides