Class ProjectsGetXpnResources.Builder (1.65.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.XpnResourceId>
Returns
Type Description
ProjectsGetXpnResources.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProjectsGetXpnResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value XpnResourceId
Returns
Type Description
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
Name Description
builderForValue XpnResourceId.Builder
Returns
Type Description
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
Name Description
index int
value XpnResourceId
Returns
Type Description
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
Name Description
index int
builderForValue XpnResourceId.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
XpnResourceId.Builder

build()

public ProjectsGetXpnResources build()
Returns
Type Description
ProjectsGetXpnResources

buildPartial()

public ProjectsGetXpnResources buildPartial()
Returns
Type Description
ProjectsGetXpnResources

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ProjectsGetXpnResources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ProjectsGetXpnResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProjectsGetXpnResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
ProjectsGetXpnResources.Builder

clone()

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

getDefaultInstanceForType()

public ProjectsGetXpnResources getDefaultInstanceForType()
Returns
Type Description
ProjectsGetXpnResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the nextPageToken field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProjectsGetXpnResources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProjectsGetXpnResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ProjectsGetXpnResources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProjectsGetXpnResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The kind to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value XpnResourceId
Returns
Type Description
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
Name Description
index int
builderForValue XpnResourceId.Builder
Returns
Type Description
ProjectsGetXpnResources.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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