Send feedback
Class MachineSpec.Builder (0.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.14.1 keyboard_arrow_down
public static final class MachineSpec . Builder extends GeneratedMessageV3 . Builder<MachineSpec . Builder > implements MachineSpecOrBuilder
Specification of a single machine.
Protobuf type google.events.cloud.visionai.v1.MachineSpec
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()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MachineSpec . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public MachineSpec build ()
buildPartial()
public MachineSpec buildPartial ()
clear()
public MachineSpec . Builder clear ()
Overrides
clearAcceleratorCount()
public MachineSpec . Builder clearAcceleratorCount ()
The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
clearAcceleratorType()
public MachineSpec . Builder clearAcceleratorType ()
Immutable. The type of accelerator(s) that may be attached to the machine
as per
accelerator_count .
.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;
clearField(Descriptors.FieldDescriptor field)
public MachineSpec . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearMachineType()
public MachineSpec . Builder clearMachineType ()
clearOneof(Descriptors.OneofDescriptor oneof)
public MachineSpec . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public MachineSpec . Builder clone ()
Overrides
getAcceleratorCount()
public int getAcceleratorCount ()
The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
Returns Type Description int
The acceleratorCount.
getAcceleratorType()
public AcceleratorType getAcceleratorType ()
Immutable. The type of accelerator(s) that may be attached to the machine
as per
accelerator_count .
.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;
getAcceleratorTypeValue()
public int getAcceleratorTypeValue ()
Immutable. The type of accelerator(s) that may be attached to the machine
as per
accelerator_count .
.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;
Returns Type Description int
The enum numeric value on the wire for acceleratorType.
getDefaultInstanceForType()
public MachineSpec getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getMachineType()
public String getMachineType ()
Returns Type Description String
The machineType.
getMachineTypeBytes()
public ByteString getMachineTypeBytes ()
Returns Type Description ByteString
The bytes for machineType.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(MachineSpec other)
public MachineSpec . Builder mergeFrom ( MachineSpec other )
public MachineSpec . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public MachineSpec . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachineSpec . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setAcceleratorCount(int value)
public MachineSpec . Builder setAcceleratorCount ( int value )
The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
Parameter Name Description value
int
The acceleratorCount to set.
setAcceleratorType(AcceleratorType value)
public MachineSpec . Builder setAcceleratorType ( AcceleratorType value )
Immutable. The type of accelerator(s) that may be attached to the machine
as per
accelerator_count .
.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;
setAcceleratorTypeValue(int value)
public MachineSpec . Builder setAcceleratorTypeValue ( int value )
Immutable. The type of accelerator(s) that may be attached to the machine
as per
accelerator_count .
.google.events.cloud.visionai.v1.AcceleratorType accelerator_type = 2;
Parameter Name Description value
int
The enum numeric value on the wire for acceleratorType to set.
setField(Descriptors.FieldDescriptor field, Object value)
public MachineSpec . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setMachineType(String value)
public MachineSpec . Builder setMachineType ( String value )
Parameter Name Description value
String
The machineType to set.
setMachineTypeBytes(ByteString value)
public MachineSpec . Builder setMachineTypeBytes ( ByteString value )
Parameter Name Description value
ByteString
The bytes for machineType to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MachineSpec . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MachineSpec . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
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-02-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-03 UTC."],[],[]]