Class ListMavenArtifactsResponse.Builder (1.40.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
Type Description
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
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1.MavenArtifact>
Returns
Type Description
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
Name Description
value MavenArtifact
Returns
Type Description
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
Name Description
builderForValue MavenArtifact.Builder
Returns
Type Description
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
Name Description
index int
value MavenArtifact
Returns
Type Description
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
Name Description
index int
builderForValue MavenArtifact.Builder
Returns
Type Description
ListMavenArtifactsResponse.Builder

addMavenArtifactsBuilder()

public MavenArtifact.Builder addMavenArtifactsBuilder()

The maven artifacts returned.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
MavenArtifact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListMavenArtifactsResponse build()
Returns
Type Description
ListMavenArtifactsResponse

buildPartial()

public ListMavenArtifactsResponse buildPartial()
Returns
Type Description
ListMavenArtifactsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMavenArtifacts()

public ListMavenArtifactsResponse.Builder clearMavenArtifacts()

The maven artifacts returned.

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

Returns
Type Description
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
Type Description
ListMavenArtifactsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListMavenArtifactsResponse getDefaultInstanceForType()
Returns
Type Description
ListMavenArtifactsResponse

getDescriptorForType()

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

getMavenArtifacts(int index)

public MavenArtifact getMavenArtifacts(int index)

The maven artifacts returned.

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

Parameter
Name Description
index int
Returns
Type Description
MavenArtifact

getMavenArtifactsBuilder(int index)

public MavenArtifact.Builder getMavenArtifactsBuilder(int index)

The maven artifacts returned.

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

Parameter
Name Description
index int
Returns
Type Description
MavenArtifact.Builder

getMavenArtifactsBuilderList()

public List<MavenArtifact.Builder> getMavenArtifactsBuilderList()

The maven artifacts returned.

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

Returns
Type Description
List<Builder>

getMavenArtifactsCount()

public int getMavenArtifactsCount()

The maven artifacts returned.

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

Returns
Type Description
int

getMavenArtifactsList()

public List<MavenArtifact> getMavenArtifactsList()

The maven artifacts returned.

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

Returns
Type Description
List<MavenArtifact>

getMavenArtifactsOrBuilder(int index)

public MavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index)

The maven artifacts returned.

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

Parameter
Name Description
index int
Returns
Type Description
MavenArtifactOrBuilder

getMavenArtifactsOrBuilderList()

public List<? extends MavenArtifactOrBuilder> getMavenArtifactsOrBuilderList()

The maven artifacts returned.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMavenArtifactsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMavenArtifactsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListMavenArtifactsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMavenArtifactsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value MavenArtifact
Returns
Type Description
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
Name Description
index int
builderForValue MavenArtifact.Builder
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListMavenArtifactsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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