Class ProjectsDisableXpnResourceRequest.Builder (1.11.0)

public static final class ProjectsDisableXpnResourceRequest.Builder extends GeneratedMessageV3.Builder<ProjectsDisableXpnResourceRequest.Builder> implements ProjectsDisableXpnResourceRequestOrBuilder

Protobuf type google.cloud.compute.v1.ProjectsDisableXpnResourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectsDisableXpnResourceRequest build()
Returns
TypeDescription
ProjectsDisableXpnResourceRequest

buildPartial()

public ProjectsDisableXpnResourceRequest buildPartial()
Returns
TypeDescription
ProjectsDisableXpnResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearXpnResource()

public ProjectsDisableXpnResourceRequest.Builder clearXpnResource()

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

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

Returns
TypeDescription
ProjectsDisableXpnResourceRequest.Builder

clone()

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

getDefaultInstanceForType()

public ProjectsDisableXpnResourceRequest getDefaultInstanceForType()
Returns
TypeDescription
ProjectsDisableXpnResourceRequest

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(ProjectsDisableXpnResourceRequest other)

public ProjectsDisableXpnResourceRequest.Builder mergeFrom(ProjectsDisableXpnResourceRequest other)
Parameter
NameDescription
otherProjectsDisableXpnResourceRequest
Returns
TypeDescription
ProjectsDisableXpnResourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeXpnResource(XpnResourceId value)

public ProjectsDisableXpnResourceRequest.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
ProjectsDisableXpnResourceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setXpnResource(XpnResourceId value)

public ProjectsDisableXpnResourceRequest.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
ProjectsDisableXpnResourceRequest.Builder

setXpnResource(XpnResourceId.Builder builderForValue)

public ProjectsDisableXpnResourceRequest.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
ProjectsDisableXpnResourceRequest.Builder