Class ListNetworkPoliciesResponse.Builder (0.45.0)

public static final class ListNetworkPoliciesResponse.Builder extends GeneratedMessageV3.Builder<ListNetworkPoliciesResponse.Builder> implements ListNetworkPoliciesResponseOrBuilder

Response message for VmwareEngine.ListNetworkPolicies

Protobuf type google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllNetworkPolicies(Iterable<? extends NetworkPolicy> values)

public ListNetworkPoliciesResponse.Builder addAllNetworkPolicies(Iterable<? extends NetworkPolicy> values)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmwareengine.v1.NetworkPolicy>
Returns
Type Description
ListNetworkPoliciesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached when making an aggregated query using wildcards.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListNetworkPoliciesResponse.Builder

This builder for chaining.

addNetworkPolicies(NetworkPolicy value)

public ListNetworkPoliciesResponse.Builder addNetworkPolicies(NetworkPolicy value)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
value NetworkPolicy
Returns
Type Description
ListNetworkPoliciesResponse.Builder

addNetworkPolicies(NetworkPolicy.Builder builderForValue)

public ListNetworkPoliciesResponse.Builder addNetworkPolicies(NetworkPolicy.Builder builderForValue)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
builderForValue NetworkPolicy.Builder
Returns
Type Description
ListNetworkPoliciesResponse.Builder

addNetworkPolicies(int index, NetworkPolicy value)

public ListNetworkPoliciesResponse.Builder addNetworkPolicies(int index, NetworkPolicy value)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameters
Name Description
index int
value NetworkPolicy
Returns
Type Description
ListNetworkPoliciesResponse.Builder

addNetworkPolicies(int index, NetworkPolicy.Builder builderForValue)

public ListNetworkPoliciesResponse.Builder addNetworkPolicies(int index, NetworkPolicy.Builder builderForValue)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameters
Name Description
index int
builderForValue NetworkPolicy.Builder
Returns
Type Description
ListNetworkPoliciesResponse.Builder

addNetworkPoliciesBuilder()

public NetworkPolicy.Builder addNetworkPoliciesBuilder()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
NetworkPolicy.Builder

addNetworkPoliciesBuilder(int index)

public NetworkPolicy.Builder addNetworkPoliciesBuilder(int index)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
NetworkPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListNetworkPoliciesResponse.Builder addUnreachable(String value)

Locations that could not be reached when making an aggregated query using wildcards.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListNetworkPoliciesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListNetworkPoliciesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached when making an aggregated query using wildcards.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListNetworkPoliciesResponse.Builder

This builder for chaining.

build()

public ListNetworkPoliciesResponse build()
Returns
Type Description
ListNetworkPoliciesResponse

buildPartial()

public ListNetworkPoliciesResponse buildPartial()
Returns
Type Description
ListNetworkPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkPolicies()

public ListNetworkPoliciesResponse.Builder clearNetworkPolicies()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
ListNetworkPoliciesResponse.Builder

clearNextPageToken()

public ListNetworkPoliciesResponse.Builder clearNextPageToken()

A token, which can be send 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
ListNetworkPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNetworkPoliciesResponse.Builder clearUnreachable()

Locations that could not be reached when making an aggregated query using wildcards.

repeated string unreachable = 3;

Returns
Type Description
ListNetworkPoliciesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNetworkPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
ListNetworkPoliciesResponse

getDescriptorForType()

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

getNetworkPolicies(int index)

public NetworkPolicy getNetworkPolicies(int index)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
NetworkPolicy

getNetworkPoliciesBuilder(int index)

public NetworkPolicy.Builder getNetworkPoliciesBuilder(int index)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
NetworkPolicy.Builder

getNetworkPoliciesBuilderList()

public List<NetworkPolicy.Builder> getNetworkPoliciesBuilderList()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
List<Builder>

getNetworkPoliciesCount()

public int getNetworkPoliciesCount()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
int

getNetworkPoliciesList()

public List<NetworkPolicy> getNetworkPoliciesList()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
List<NetworkPolicy>

getNetworkPoliciesOrBuilder(int index)

public NetworkPolicyOrBuilder getNetworkPoliciesOrBuilder(int index)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
NetworkPolicyOrBuilder

getNetworkPoliciesOrBuilderList()

public List<? extends NetworkPolicyOrBuilder> getNetworkPoliciesOrBuilderList()

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Returns
Type Description
List<? extends com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token, which can be send 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 send 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.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached when making an aggregated query using wildcards.

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 when making an aggregated query using wildcards.

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 when making an aggregated query using wildcards.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached when making an aggregated query using wildcards.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNetworkPolicies(int index)

public ListNetworkPoliciesResponse.Builder removeNetworkPolicies(int index)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ListNetworkPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkPolicies(int index, NetworkPolicy value)

public ListNetworkPoliciesResponse.Builder setNetworkPolicies(int index, NetworkPolicy value)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameters
Name Description
index int
value NetworkPolicy
Returns
Type Description
ListNetworkPoliciesResponse.Builder

setNetworkPolicies(int index, NetworkPolicy.Builder builderForValue)

public ListNetworkPoliciesResponse.Builder setNetworkPolicies(int index, NetworkPolicy.Builder builderForValue)

A list of network policies.

repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1;

Parameters
Name Description
index int
builderForValue NetworkPolicy.Builder
Returns
Type Description
ListNetworkPoliciesResponse.Builder

setNextPageToken(String value)

public ListNetworkPoliciesResponse.Builder setNextPageToken(String value)

A token, which can be send 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
ListNetworkPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNetworkPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be send 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
ListNetworkPoliciesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached when making an aggregated query using wildcards.

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
ListNetworkPoliciesResponse.Builder

This builder for chaining.