Class AcceleratorConfig.Builder (0.27.0)

publicstaticfinalclass AcceleratorConfig.BuilderextendsGeneratedMessageV3.Builder<AcceleratorConfig.Builder>implementsAcceleratorConfigOrBuilder

A specification of the type and number of accelerator cards attached to the instance.

Protobuf type google.cloud.backupdr.v1.AcceleratorConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAcceleratorConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

build()

publicAcceleratorConfigbuild()
Returns
Type Description
AcceleratorConfig

buildPartial()

publicAcceleratorConfigbuildPartial()
Returns
Type Description
AcceleratorConfig

clear()

publicAcceleratorConfig.Builderclear()
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clearAcceleratorCount()

publicAcceleratorConfig.BuilderclearAcceleratorCount()

Optional. The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

clearAcceleratorType()

publicAcceleratorConfig.BuilderclearAcceleratorType()

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicAcceleratorConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAcceleratorConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clone()

publicAcceleratorConfig.Builderclone()
Returns
Type Description
AcceleratorConfig.Builder
Overrides

getAcceleratorCount()

publicintgetAcceleratorCount()

Optional. The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The acceleratorCount.

getAcceleratorType()

publicStringgetAcceleratorType()

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

publicByteStringgetAcceleratorTypeBytes()

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

publicAcceleratorConfiggetDefaultInstanceForType()
Returns
Type Description
AcceleratorConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAcceleratorCount()

publicbooleanhasAcceleratorCount()

Optional. The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the acceleratorCount field is set.

hasAcceleratorType()

publicbooleanhasAcceleratorType()

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the acceleratorType field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AcceleratorConfig other)

publicAcceleratorConfig.BuildermergeFrom(AcceleratorConfigother)
Parameter
Name Description
other AcceleratorConfig
Returns
Type Description
AcceleratorConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAcceleratorConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AcceleratorConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAcceleratorConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AcceleratorConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAcceleratorConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorConfig.Builder
Overrides

setAcceleratorCount(int value)

publicAcceleratorConfig.BuildersetAcceleratorCount(intvalue)

Optional. The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The acceleratorCount to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setAcceleratorType(String value)

publicAcceleratorConfig.BuildersetAcceleratorType(Stringvalue)

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The acceleratorType to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setAcceleratorTypeBytes(ByteString value)

publicAcceleratorConfig.BuildersetAcceleratorTypeBytes(ByteStringvalue)

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for acceleratorType to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicAcceleratorConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

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

publicAcceleratorConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAcceleratorConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorConfig.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.