Class ProjectsEnableXpnResourceRequest.Builder (1.64.0)

public static final class ProjectsEnableXpnResourceRequest.Builder extends GeneratedMessageV3.Builder<ProjectsEnableXpnResourceRequest.Builder> implements ProjectsEnableXpnResourceRequestOrBuilder

Protobuf type google.cloud.compute.v1.ProjectsEnableXpnResourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectsEnableXpnResourceRequest build()
Returns
Type Description
ProjectsEnableXpnResourceRequest

buildPartial()

public ProjectsEnableXpnResourceRequest buildPartial()
Returns
Type Description
ProjectsEnableXpnResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearXpnResource()

public ProjectsEnableXpnResourceRequest.Builder clearXpnResource()

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Returns
Type Description
ProjectsEnableXpnResourceRequest.Builder

clone()

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

getDefaultInstanceForType()

public ProjectsEnableXpnResourceRequest getDefaultInstanceForType()
Returns
Type Description
ProjectsEnableXpnResourceRequest

getDescriptorForType()

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

getXpnResource()

public XpnResourceId getXpnResource()

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Returns
Type Description
XpnResourceId

The xpnResource.

getXpnResourceBuilder()

public XpnResourceId.Builder getXpnResourceBuilder()

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Returns
Type Description
XpnResourceId.Builder

getXpnResourceOrBuilder()

public XpnResourceIdOrBuilder getXpnResourceOrBuilder()

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Returns
Type Description
XpnResourceIdOrBuilder

hasXpnResource()

public boolean hasXpnResource()

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Returns
Type Description
boolean

Whether the xpnResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProjectsEnableXpnResourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeXpnResource(XpnResourceId value)

public ProjectsEnableXpnResourceRequest.Builder mergeXpnResource(XpnResourceId value)

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Parameter
Name Description
value XpnResourceId
Returns
Type Description
ProjectsEnableXpnResourceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setXpnResource(XpnResourceId value)

public ProjectsEnableXpnResourceRequest.Builder setXpnResource(XpnResourceId value)

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Parameter
Name Description
value XpnResourceId
Returns
Type Description
ProjectsEnableXpnResourceRequest.Builder

setXpnResource(XpnResourceId.Builder builderForValue)

public ProjectsEnableXpnResourceRequest.Builder setXpnResource(XpnResourceId.Builder builderForValue)

Service resource (a.k.a service project) ID.

optional .google.cloud.compute.v1.XpnResourceId xpn_resource = 133384631;

Parameter
Name Description
builderForValue XpnResourceId.Builder
Returns
Type Description
ProjectsEnableXpnResourceRequest.Builder