Class ProjectsGetXpnResources.Builder (1.26.0)

public static final class ProjectsGetXpnResources.Builder extends GeneratedMessageV3.Builder<ProjectsGetXpnResources.Builder> implements ProjectsGetXpnResourcesOrBuilder

Protobuf type google.cloud.compute.v1.ProjectsGetXpnResources

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResources(Iterable<? extends XpnResourceId> values)

public ProjectsGetXpnResources.Builder addAllResources(Iterable<? extends XpnResourceId> values)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.XpnResourceId>
Returns
TypeDescription
ProjectsGetXpnResources.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(XpnResourceId value)

public ProjectsGetXpnResources.Builder addResources(XpnResourceId value)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
valueXpnResourceId
Returns
TypeDescription
ProjectsGetXpnResources.Builder

addResources(XpnResourceId.Builder builderForValue)

public ProjectsGetXpnResources.Builder addResources(XpnResourceId.Builder builderForValue)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
builderForValueXpnResourceId.Builder
Returns
TypeDescription
ProjectsGetXpnResources.Builder

addResources(int index, XpnResourceId value)

public ProjectsGetXpnResources.Builder addResources(int index, XpnResourceId value)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameters
NameDescription
indexint
valueXpnResourceId
Returns
TypeDescription
ProjectsGetXpnResources.Builder

addResources(int index, XpnResourceId.Builder builderForValue)

public ProjectsGetXpnResources.Builder addResources(int index, XpnResourceId.Builder builderForValue)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameters
NameDescription
indexint
builderForValueXpnResourceId.Builder
Returns
TypeDescription
ProjectsGetXpnResources.Builder

addResourcesBuilder()

public XpnResourceId.Builder addResourcesBuilder()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
XpnResourceId.Builder

addResourcesBuilder(int index)

public XpnResourceId.Builder addResourcesBuilder(int index)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
indexint
Returns
TypeDescription
XpnResourceId.Builder

build()

public ProjectsGetXpnResources build()
Returns
TypeDescription
ProjectsGetXpnResources

buildPartial()

public ProjectsGetXpnResources buildPartial()
Returns
TypeDescription
ProjectsGetXpnResources

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public ProjectsGetXpnResources.Builder clearKind()

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

clearNextPageToken()

public ProjectsGetXpnResources.Builder clearNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ProjectsGetXpnResources.Builder clearResources()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
ProjectsGetXpnResources.Builder

clone()

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

getDefaultInstanceForType()

public ProjectsGetXpnResources getDefaultInstanceForType()
Returns
TypeDescription
ProjectsGetXpnResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public String getKind()

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getNextPageToken()

public String getNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getResources(int index)

public XpnResourceId getResources(int index)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
indexint
Returns
TypeDescription
XpnResourceId

getResourcesBuilder(int index)

public XpnResourceId.Builder getResourcesBuilder(int index)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
indexint
Returns
TypeDescription
XpnResourceId.Builder

getResourcesBuilderList()

public List<XpnResourceId.Builder> getResourcesBuilderList()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
int

getResourcesList()

public List<XpnResourceId> getResourcesList()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
List<XpnResourceId>

getResourcesOrBuilder(int index)

public XpnResourceIdOrBuilder getResourcesOrBuilder(int index)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
indexint
Returns
TypeDescription
XpnResourceIdOrBuilder

getResourcesOrBuilderList()

public List<? extends XpnResourceIdOrBuilder> getResourcesOrBuilderList()

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.XpnResourceIdOrBuilder>

hasKind()

public boolean hasKind()

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasNextPageToken()

public boolean hasNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
TypeDescription
boolean

Whether the nextPageToken field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProjectsGetXpnResources other)

public ProjectsGetXpnResources.Builder mergeFrom(ProjectsGetXpnResources other)
Parameter
NameDescription
otherProjectsGetXpnResources
Returns
TypeDescription
ProjectsGetXpnResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ProjectsGetXpnResources.Builder removeResources(int index)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProjectsGetXpnResources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(String value)

public ProjectsGetXpnResources.Builder setKind(String value)

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

setKindBytes(ByteString value)

public ProjectsGetXpnResources.Builder setKindBytes(ByteString value)

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

setNextPageToken(String value)

public ProjectsGetXpnResources.Builder setNextPageToken(String value)

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ProjectsGetXpnResources.Builder setNextPageTokenBytes(ByteString value)

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ProjectsGetXpnResources.Builder

This builder for chaining.

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

public ProjectsGetXpnResources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProjectsGetXpnResources.Builder
Overrides

setResources(int index, XpnResourceId value)

public ProjectsGetXpnResources.Builder setResources(int index, XpnResourceId value)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameters
NameDescription
indexint
valueXpnResourceId
Returns
TypeDescription
ProjectsGetXpnResources.Builder

setResources(int index, XpnResourceId.Builder builderForValue)

public ProjectsGetXpnResources.Builder setResources(int index, XpnResourceId.Builder builderForValue)

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965;

Parameters
NameDescription
indexint
builderForValueXpnResourceId.Builder
Returns
TypeDescription
ProjectsGetXpnResources.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProjectsGetXpnResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProjectsGetXpnResources.Builder
Overrides