Class ListMavenArtifactsResponse.Builder (1.11.0)

public static final class ListMavenArtifactsResponse.Builder extends GeneratedMessageV3.Builder<ListMavenArtifactsResponse.Builder> implements ListMavenArtifactsResponseOrBuilder

The response from listing maven artifacts.

Protobuf type google.devtools.artifactregistry.v1.ListMavenArtifactsResponse

Static Methods

getDescriptor()

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

Methods

addAllMavenArtifacts(Iterable<? extends MavenArtifact> values)

public ListMavenArtifactsResponse.Builder addAllMavenArtifacts(Iterable<? extends MavenArtifact> values)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1.MavenArtifact>
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

addMavenArtifacts(MavenArtifact value)

public ListMavenArtifactsResponse.Builder addMavenArtifacts(MavenArtifact value)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
valueMavenArtifact
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

addMavenArtifacts(MavenArtifact.Builder builderForValue)

public ListMavenArtifactsResponse.Builder addMavenArtifacts(MavenArtifact.Builder builderForValue)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
builderForValueMavenArtifact.Builder
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

addMavenArtifacts(int index, MavenArtifact value)

public ListMavenArtifactsResponse.Builder addMavenArtifacts(int index, MavenArtifact value)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameters
NameDescription
indexint
valueMavenArtifact
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

addMavenArtifacts(int index, MavenArtifact.Builder builderForValue)

public ListMavenArtifactsResponse.Builder addMavenArtifacts(int index, MavenArtifact.Builder builderForValue)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameters
NameDescription
indexint
builderForValueMavenArtifact.Builder
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

addMavenArtifactsBuilder()

public MavenArtifact.Builder addMavenArtifactsBuilder()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
MavenArtifact.Builder

addMavenArtifactsBuilder(int index)

public MavenArtifact.Builder addMavenArtifactsBuilder(int index)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MavenArtifact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMavenArtifactsResponse build()
Returns
TypeDescription
ListMavenArtifactsResponse

buildPartial()

public ListMavenArtifactsResponse buildPartial()
Returns
TypeDescription
ListMavenArtifactsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMavenArtifacts()

public ListMavenArtifactsResponse.Builder clearMavenArtifacts()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
ListMavenArtifactsResponse.Builder

clearNextPageToken()

public ListMavenArtifactsResponse.Builder clearNextPageToken()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
ListMavenArtifactsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMavenArtifactsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMavenArtifactsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMavenArtifacts(int index)

public MavenArtifact getMavenArtifacts(int index)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MavenArtifact

getMavenArtifactsBuilder(int index)

public MavenArtifact.Builder getMavenArtifactsBuilder(int index)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MavenArtifact.Builder

getMavenArtifactsBuilderList()

public List<MavenArtifact.Builder> getMavenArtifactsBuilderList()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
List<Builder>

getMavenArtifactsCount()

public int getMavenArtifactsCount()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
int

getMavenArtifactsList()

public List<MavenArtifact> getMavenArtifactsList()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
List<MavenArtifact>

getMavenArtifactsOrBuilder(int index)

public MavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MavenArtifactOrBuilder

getMavenArtifactsOrBuilderList()

public List<? extends MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1.MavenArtifactOrBuilder>

getNextPageToken()

public String getNextPageToken()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMavenArtifactsResponse other)

public ListMavenArtifactsResponse.Builder mergeFrom(ListMavenArtifactsResponse other)
Parameter
NameDescription
otherListMavenArtifactsResponse
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMavenArtifacts(int index)

public ListMavenArtifactsResponse.Builder removeMavenArtifacts(int index)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMavenArtifacts(int index, MavenArtifact value)

public ListMavenArtifactsResponse.Builder setMavenArtifacts(int index, MavenArtifact value)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameters
NameDescription
indexint
valueMavenArtifact
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

setMavenArtifacts(int index, MavenArtifact.Builder builderForValue)

public ListMavenArtifactsResponse.Builder setMavenArtifacts(int index, MavenArtifact.Builder builderForValue)

The maven artifacts returned.

repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1;

Parameters
NameDescription
indexint
builderForValueMavenArtifact.Builder
Returns
TypeDescription
ListMavenArtifactsResponse.Builder

setNextPageToken(String value)

public ListMavenArtifactsResponse.Builder setNextPageToken(String value)

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListMavenArtifactsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMavenArtifactsResponse.Builder setNextPageTokenBytes(ByteString value)

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListMavenArtifactsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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