Class ListNetworkPoliciesResponse.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmwareengine.v1.NetworkPolicy>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueNetworkPolicy
Returns
TypeDescription
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
NameDescription
builderForValueNetworkPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNetworkPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNetworkPolicy.Builder
Returns
TypeDescription
ListNetworkPoliciesResponse.Builder

addNetworkPoliciesBuilder()

public NetworkPolicy.Builder addNetworkPoliciesBuilder()

A list of network policies.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListNetworkPoliciesResponse.Builder

This builder for chaining.

build()

public ListNetworkPoliciesResponse build()
Returns
TypeDescription
ListNetworkPoliciesResponse

buildPartial()

public ListNetworkPoliciesResponse buildPartial()
Returns
TypeDescription
ListNetworkPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListNetworkPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListNetworkPoliciesResponse.Builder
Overrides

clearNetworkPolicies()

public ListNetworkPoliciesResponse.Builder clearNetworkPolicies()

A list of network policies.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListNetworkPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListNetworkPoliciesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNetworkPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNetworkPoliciesResponse

getDescriptorForType()

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

getNetworkPoliciesBuilderList()

public List<NetworkPolicy.Builder> getNetworkPoliciesBuilderList()

A list of network policies.

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

Returns
TypeDescription
List<Builder>

getNetworkPoliciesCount()

public int getNetworkPoliciesCount()

A list of network policies.

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

Returns
TypeDescription
int

getNetworkPoliciesList()

public List<NetworkPolicy> getNetworkPoliciesList()

A list of network policies.

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

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

getNetworkPoliciesOrBuilderList()

public List<? extends NetworkPolicyOrBuilder> getNetworkPoliciesOrBuilderList()

A list of network policies.

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

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

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

repeated string unreachable = 3;

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

public ListNetworkPoliciesResponse.Builder mergeFrom(ListNetworkPoliciesResponse other)
Parameter
NameDescription
otherListNetworkPoliciesResponse
Returns
TypeDescription
ListNetworkPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListNetworkPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListNetworkPoliciesResponse.Builder

This builder for chaining.