Class ListReleasesResponse.Builder (1.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.Release>
Returns
TypeDescription
ListReleasesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueRelease
Returns
TypeDescription
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
NameDescription
builderForValueRelease.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRelease
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelease.Builder
Returns
TypeDescription
ListReleasesResponse.Builder

addReleasesBuilder()

public Release.Builder addReleasesBuilder()

The Release objects.

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

Returns
TypeDescription
Release.Builder

addReleasesBuilder(int index)

public Release.Builder addReleasesBuilder(int index)

The Release objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Release.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListReleasesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListReleasesResponse.Builder

This builder for chaining.

build()

public ListReleasesResponse build()
Returns
TypeDescription
ListReleasesResponse

buildPartial()

public ListReleasesResponse buildPartial()
Returns
TypeDescription
ListReleasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListReleasesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListReleasesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReleases()

public ListReleasesResponse.Builder clearReleases()

The Release objects.

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

Returns
TypeDescription
ListReleasesResponse.Builder

clearUnreachable()

public ListReleasesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListReleasesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListReleasesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListReleasesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Release

getReleasesBuilder(int index)

public Release.Builder getReleasesBuilder(int index)

The Release objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Release.Builder

getReleasesBuilderList()

public List<Release.Builder> getReleasesBuilderList()

The Release objects.

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

Returns
TypeDescription
List<Builder>

getReleasesCount()

public int getReleasesCount()

The Release objects.

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

Returns
TypeDescription
int

getReleasesList()

public List<Release> getReleasesList()

The Release objects.

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

Returns
TypeDescription
List<Release>

getReleasesOrBuilder(int index)

public ReleaseOrBuilder getReleasesOrBuilder(int index)

The Release objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ReleaseOrBuilder

getReleasesOrBuilderList()

public List<? extends ReleaseOrBuilder> getReleasesOrBuilderList()

The Release objects.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListReleasesResponse other)

public ListReleasesResponse.Builder mergeFrom(ListReleasesResponse other)
Parameter
NameDescription
otherListReleasesResponse
Returns
TypeDescription
ListReleasesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReleases(int index)

public ListReleasesResponse.Builder removeReleases(int index)

The Release objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListReleasesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListReleasesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRelease
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelease.Builder
Returns
TypeDescription
ListReleasesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListReleasesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListReleasesResponse.Builder

This builder for chaining.