Class ListReleasesResponse.Builder (1.52.0)

public static final class ListReleasesResponse.Builder extends GeneratedMessageV3.Builder<ListReleasesResponse.Builder> implements ListReleasesResponseOrBuilder

The response object from ListReleases.

Protobuf type google.cloud.deploy.v1.ListReleasesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReleases(Iterable<? extends Release> values)

public ListReleasesResponse.Builder addAllReleases(Iterable<? extends Release> values)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.Release>
Returns
Type Description
ListReleasesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListReleasesResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

addReleases(Release value)

public ListReleasesResponse.Builder addReleases(Release value)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
value Release
Returns
Type Description
ListReleasesResponse.Builder

addReleases(Release.Builder builderForValue)

public ListReleasesResponse.Builder addReleases(Release.Builder builderForValue)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
builderForValue Release.Builder
Returns
Type Description
ListReleasesResponse.Builder

addReleases(int index, Release value)

public ListReleasesResponse.Builder addReleases(int index, Release value)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameters
Name Description
index int
value Release
Returns
Type Description
ListReleasesResponse.Builder

addReleases(int index, Release.Builder builderForValue)

public ListReleasesResponse.Builder addReleases(int index, Release.Builder builderForValue)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameters
Name Description
index int
builderForValue Release.Builder
Returns
Type Description
ListReleasesResponse.Builder

addReleasesBuilder()

public Release.Builder addReleasesBuilder()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
Release.Builder

addReleasesBuilder(int index)

public Release.Builder addReleasesBuilder(int index)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
index int
Returns
Type Description
Release.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListReleasesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListReleasesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

build()

public ListReleasesResponse build()
Returns
Type Description
ListReleasesResponse

buildPartial()

public ListReleasesResponse buildPartial()
Returns
Type Description
ListReleasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListReleasesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReleases()

public ListReleasesResponse.Builder clearReleases()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
ListReleasesResponse.Builder

clearUnreachable()

public ListReleasesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListReleasesResponse getDefaultInstanceForType()
Returns
Type Description
ListReleasesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getReleases(int index)

public Release getReleases(int index)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
index int
Returns
Type Description
Release

getReleasesBuilder(int index)

public Release.Builder getReleasesBuilder(int index)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
index int
Returns
Type Description
Release.Builder

getReleasesBuilderList()

public List<Release.Builder> getReleasesBuilderList()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
List<Builder>

getReleasesCount()

public int getReleasesCount()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
int

getReleasesList()

public List<Release> getReleasesList()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
List<Release>

getReleasesOrBuilder(int index)

public ReleaseOrBuilder getReleasesOrBuilder(int index)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
index int
Returns
Type Description
ReleaseOrBuilder

getReleasesOrBuilderList()

public List<? extends ReleaseOrBuilder> getReleasesOrBuilderList()

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.ReleaseOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListReleasesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListReleasesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListReleasesResponse.Builder
Overrides

removeReleases(int index)

public ListReleasesResponse.Builder removeReleases(int index)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameter
Name Description
index int
Returns
Type Description
ListReleasesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListReleasesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReleasesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.

setReleases(int index, Release value)

public ListReleasesResponse.Builder setReleases(int index, Release value)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameters
Name Description
index int
value Release
Returns
Type Description
ListReleasesResponse.Builder

setReleases(int index, Release.Builder builderForValue)

public ListReleasesResponse.Builder setReleases(int index, Release.Builder builderForValue)

The Release objects.

repeated .google.cloud.deploy.v1.Release releases = 1;

Parameters
Name Description
index int
builderForValue Release.Builder
Returns
Type Description
ListReleasesResponse.Builder

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

public ListReleasesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListReleasesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListReleasesResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListReleasesResponse.Builder

This builder for chaining.