Class ProjectsEnableXpnResourceRequest.Builder (1.44.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectsEnableXpnResourceRequest build()
Returns
TypeDescription
ProjectsEnableXpnResourceRequest

buildPartial()

public ProjectsEnableXpnResourceRequest buildPartial()
Returns
TypeDescription
ProjectsEnableXpnResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ProjectsEnableXpnResourceRequest getDefaultInstanceForType()
Returns
TypeDescription
ProjectsEnableXpnResourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getXpnResource()

public XpnResourceId getXpnResource()

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

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

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

getXpnResourceOrBuilder()

public XpnResourceIdOrBuilder getXpnResourceOrBuilder()

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

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

Returns
TypeDescription
XpnResourceIdOrBuilder

hasXpnResource()

public boolean hasXpnResource()

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

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

Returns
TypeDescription
boolean

Whether the xpnResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProjectsEnableXpnResourceRequest other)

public ProjectsEnableXpnResourceRequest.Builder mergeFrom(ProjectsEnableXpnResourceRequest other)
Parameter
NameDescription
otherProjectsEnableXpnResourceRequest
Returns
TypeDescription
ProjectsEnableXpnResourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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