Class ListEndpointPoliciesResponse.Builder (0.1.0)

public static final class ListEndpointPoliciesResponse.Builder extends GeneratedMessageV3.Builder<ListEndpointPoliciesResponse.Builder> implements ListEndpointPoliciesResponseOrBuilder

Response returned by the ListEndpointPolicies method.

Protobuf type google.cloud.networkservices.v1.ListEndpointPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllEndpointPolicies(Iterable<? extends EndpointPolicy> values)

public ListEndpointPoliciesResponse.Builder addAllEndpointPolicies(Iterable<? extends EndpointPolicy> values)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.EndpointPolicy>
Returns
Type Description
ListEndpointPoliciesResponse.Builder

addEndpointPolicies(EndpointPolicy value)

public ListEndpointPoliciesResponse.Builder addEndpointPolicies(EndpointPolicy value)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
value EndpointPolicy
Returns
Type Description
ListEndpointPoliciesResponse.Builder

addEndpointPolicies(EndpointPolicy.Builder builderForValue)

public ListEndpointPoliciesResponse.Builder addEndpointPolicies(EndpointPolicy.Builder builderForValue)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
builderForValue EndpointPolicy.Builder
Returns
Type Description
ListEndpointPoliciesResponse.Builder

addEndpointPolicies(int index, EndpointPolicy value)

public ListEndpointPoliciesResponse.Builder addEndpointPolicies(int index, EndpointPolicy value)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameters
Name Description
index int
value EndpointPolicy
Returns
Type Description
ListEndpointPoliciesResponse.Builder

addEndpointPolicies(int index, EndpointPolicy.Builder builderForValue)

public ListEndpointPoliciesResponse.Builder addEndpointPolicies(int index, EndpointPolicy.Builder builderForValue)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameters
Name Description
index int
builderForValue EndpointPolicy.Builder
Returns
Type Description
ListEndpointPoliciesResponse.Builder

addEndpointPoliciesBuilder()

public EndpointPolicy.Builder addEndpointPoliciesBuilder()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
EndpointPolicy.Builder

addEndpointPoliciesBuilder(int index)

public EndpointPolicy.Builder addEndpointPoliciesBuilder(int index)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
EndpointPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListEndpointPoliciesResponse build()
Returns
Type Description
ListEndpointPoliciesResponse

buildPartial()

public ListEndpointPoliciesResponse buildPartial()
Returns
Type Description
ListEndpointPoliciesResponse

clear()

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

clearEndpointPolicies()

public ListEndpointPoliciesResponse.Builder clearEndpointPolicies()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
ListEndpointPoliciesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListEndpointPoliciesResponse.Builder clearNextPageToken()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
ListEndpointPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListEndpointPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
ListEndpointPoliciesResponse

getDescriptorForType()

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

getEndpointPolicies(int index)

public EndpointPolicy getEndpointPolicies(int index)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
EndpointPolicy

getEndpointPoliciesBuilder(int index)

public EndpointPolicy.Builder getEndpointPoliciesBuilder(int index)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
EndpointPolicy.Builder

getEndpointPoliciesBuilderList()

public List<EndpointPolicy.Builder> getEndpointPoliciesBuilderList()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
List<Builder>

getEndpointPoliciesCount()

public int getEndpointPoliciesCount()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
int

getEndpointPoliciesList()

public List<EndpointPolicy> getEndpointPoliciesList()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
List<EndpointPolicy>

getEndpointPoliciesOrBuilder(int index)

public EndpointPolicyOrBuilder getEndpointPoliciesOrBuilder(int index)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
EndpointPolicyOrBuilder

getEndpointPoliciesOrBuilderList()

public List<? extends EndpointPolicyOrBuilder> getEndpointPoliciesOrBuilderList()

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.EndpointPolicyOrBuilder>

getNextPageToken()

public String getNextPageToken()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEndpointPolicies(int index)

public ListEndpointPoliciesResponse.Builder removeEndpointPolicies(int index)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ListEndpointPoliciesResponse.Builder

setEndpointPolicies(int index, EndpointPolicy value)

public ListEndpointPoliciesResponse.Builder setEndpointPolicies(int index, EndpointPolicy value)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameters
Name Description
index int
value EndpointPolicy
Returns
Type Description
ListEndpointPoliciesResponse.Builder

setEndpointPolicies(int index, EndpointPolicy.Builder builderForValue)

public ListEndpointPoliciesResponse.Builder setEndpointPolicies(int index, EndpointPolicy.Builder builderForValue)

List of EndpointPolicy resources.

repeated .google.cloud.networkservices.v1.EndpointPolicy endpoint_policies = 1;

Parameters
Name Description
index int
builderForValue EndpointPolicy.Builder
Returns
Type Description
ListEndpointPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListEndpointPoliciesResponse.Builder setNextPageToken(String value)

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListEndpointPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListEndpointPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListEndpointPoliciesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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