Class ListTargetsResponse.Builder (1.43.0)

public static final class ListTargetsResponse.Builder extends GeneratedMessageV3.Builder<ListTargetsResponse.Builder> implements ListTargetsResponseOrBuilder

The response object from ListTargets.

Protobuf type google.cloud.deploy.v1.ListTargetsResponse

Static Methods

getDescriptor()

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

Methods

addAllTargets(Iterable<? extends Target> values)

public ListTargetsResponse.Builder addAllTargets(Iterable<? extends Target> values)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

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

addAllUnreachable(Iterable<String> values)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargets(Target value)

public ListTargetsResponse.Builder addTargets(Target value)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
value Target
Returns
Type Description
ListTargetsResponse.Builder

addTargets(Target.Builder builderForValue)

public ListTargetsResponse.Builder addTargets(Target.Builder builderForValue)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
builderForValue Target.Builder
Returns
Type Description
ListTargetsResponse.Builder

addTargets(int index, Target value)

public ListTargetsResponse.Builder addTargets(int index, Target value)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameters
Name Description
index int
value Target
Returns
Type Description
ListTargetsResponse.Builder

addTargets(int index, Target.Builder builderForValue)

public ListTargetsResponse.Builder addTargets(int index, Target.Builder builderForValue)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameters
Name Description
index int
builderForValue Target.Builder
Returns
Type Description
ListTargetsResponse.Builder

addTargetsBuilder()

public Target.Builder addTargetsBuilder()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Returns
Type Description
Target.Builder

addTargetsBuilder(int index)

public Target.Builder addTargetsBuilder(int index)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
index int
Returns
Type Description
Target.Builder

addUnreachable(String value)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

build()

public ListTargetsResponse build()
Returns
Type Description
ListTargetsResponse

buildPartial()

public ListTargetsResponse buildPartial()
Returns
Type Description
ListTargetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargets()

public ListTargetsResponse.Builder clearTargets()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Returns
Type Description
ListTargetsResponse.Builder

clearUnreachable()

public ListTargetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListTargetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTargetsResponse getDefaultInstanceForType()
Returns
Type Description
ListTargetsResponse

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.

getTargets(int index)

public Target getTargets(int index)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
index int
Returns
Type Description
Target

getTargetsBuilder(int index)

public Target.Builder getTargetsBuilder(int index)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
index int
Returns
Type Description
Target.Builder

getTargetsBuilderList()

public List<Target.Builder> getTargetsBuilderList()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Returns
Type Description
List<Builder>

getTargetsCount()

public int getTargetsCount()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Returns
Type Description
int

getTargetsList()

public List<Target> getTargetsList()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Returns
Type Description
List<Target>

getTargetsOrBuilder(int index)

public TargetOrBuilder getTargetsOrBuilder(int index)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
index int
Returns
Type Description
TargetOrBuilder

getTargetsOrBuilderList()

public List<? extends TargetOrBuilder> getTargetsOrBuilderList()

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

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

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(ListTargetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTargets(int index)

public ListTargetsResponse.Builder removeTargets(int index)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTargetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.

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

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

setTargets(int index, Target value)

public ListTargetsResponse.Builder setTargets(int index, Target value)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameters
Name Description
index int
value Target
Returns
Type Description
ListTargetsResponse.Builder

setTargets(int index, Target.Builder builderForValue)

public ListTargetsResponse.Builder setTargets(int index, Target.Builder builderForValue)

The Target objects.

repeated .google.cloud.deploy.v1.Target targets = 1;

Parameters
Name Description
index int
builderForValue Target.Builder
Returns
Type Description
ListTargetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListTargetsResponse.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
ListTargetsResponse.Builder

This builder for chaining.