Class ListTargetsResponse.Builder (1.10.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.Target>
Returns
TypeDescription
ListTargetsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargets(Target value)

public ListTargetsResponse.Builder addTargets(Target value)

The Target objects.

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

Parameter
NameDescription
valueTarget
Returns
TypeDescription
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
NameDescription
builderForValueTarget.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTarget
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTarget.Builder
Returns
TypeDescription
ListTargetsResponse.Builder

addTargetsBuilder()

public Target.Builder addTargetsBuilder()

The Target objects.

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

Returns
TypeDescription
Target.Builder

addTargetsBuilder(int index)

public Target.Builder addTargetsBuilder(int index)

The Target objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Target.Builder

addUnreachable(String value)

public ListTargetsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListTargetsResponse.Builder

This builder for chaining.

build()

public ListTargetsResponse build()
Returns
TypeDescription
ListTargetsResponse

buildPartial()

public ListTargetsResponse buildPartial()
Returns
TypeDescription
ListTargetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargets()

public ListTargetsResponse.Builder clearTargets()

The Target objects.

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

Returns
TypeDescription
ListTargetsResponse.Builder

clearUnreachable()

public ListTargetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListTargetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTargetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTargetsResponse

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.

getTargets(int index)

public Target getTargets(int index)

The Target objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Target

getTargetsBuilder(int index)

public Target.Builder getTargetsBuilder(int index)

The Target objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Target.Builder

getTargetsBuilderList()

public List<Target.Builder> getTargetsBuilderList()

The Target objects.

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

Returns
TypeDescription
List<Builder>

getTargetsCount()

public int getTargetsCount()

The Target objects.

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

Returns
TypeDescription
int

getTargetsList()

public List<Target> getTargetsList()

The Target objects.

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

Returns
TypeDescription
List<Target>

getTargetsOrBuilder(int index)

public TargetOrBuilder getTargetsOrBuilder(int index)

The Target objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetOrBuilder

getTargetsOrBuilderList()

public List<? extends TargetOrBuilder> getTargetsOrBuilderList()

The Target objects.

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

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

public ListTargetsResponse.Builder mergeFrom(ListTargetsResponse other)
Parameter
NameDescription
otherListTargetsResponse
Returns
TypeDescription
ListTargetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTargets(int index)

public ListTargetsResponse.Builder removeTargets(int index)

The Target objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListTargetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTarget
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTarget.Builder
Returns
TypeDescription
ListTargetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListTargetsResponse.Builder

This builder for chaining.