Package com.google.cloud.compute.v1
Class FutureResourcesSpecAggregateResources.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
com.google.cloud.compute.v1.FutureResourcesSpecAggregateResources.Builder
- All Implemented Interfaces:
FutureResourcesSpecAggregateResourcesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FutureResourcesSpecAggregateResources
public static final class FutureResourcesSpecAggregateResources.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
implements FutureResourcesSpecAggregateResourcesOrBuilder
Protobuf type
google.cloud.compute.v1.FutureResourcesSpecAggregateResources-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Size of the request, in accelerator (chip) count.The VM family that all instances scheduled against this reservation must belong to.Workload type.longSize of the request, in accelerator (chip) count.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe VM family that all instances scheduled against this reservation must belong to.com.google.protobuf.ByteStringThe VM family that all instances scheduled against this reservation must belong to.Workload type.com.google.protobuf.ByteStringWorkload type.booleanSize of the request, in accelerator (chip) count.booleanThe VM family that all instances scheduled against this reservation must belong to.booleanWorkload type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAcceleratorCount(long value) Size of the request, in accelerator (chip) count.setVmFamily(String value) The VM family that all instances scheduled against this reservation must belong to.setVmFamilyBytes(com.google.protobuf.ByteString value) The VM family that all instances scheduled against this reservation must belong to.setWorkloadType(String value) Workload type.setWorkloadTypeBytes(com.google.protobuf.ByteString value) Workload type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
-
mergeFrom
public FutureResourcesSpecAggregateResources.Builder mergeFrom(FutureResourcesSpecAggregateResources other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpecAggregateResources.Builder>
-
mergeFrom
public FutureResourcesSpecAggregateResources.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FutureResourcesSpecAggregateResources.Builder>- Throws:
IOException
-
hasAcceleratorCount
public boolean hasAcceleratorCount()Size of the request, in accelerator (chip) count.
optional int64 accelerator_count = 504879675;- Specified by:
hasAcceleratorCountin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- Whether the acceleratorCount field is set.
-
getAcceleratorCount
public long getAcceleratorCount()Size of the request, in accelerator (chip) count.
optional int64 accelerator_count = 504879675;- Specified by:
getAcceleratorCountin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- The acceleratorCount.
-
setAcceleratorCount
Size of the request, in accelerator (chip) count.
optional int64 accelerator_count = 504879675;- Parameters:
value- The acceleratorCount to set.- Returns:
- This builder for chaining.
-
clearAcceleratorCount
Size of the request, in accelerator (chip) count.
optional int64 accelerator_count = 504879675;- Returns:
- This builder for chaining.
-
hasVmFamily
public boolean hasVmFamily()The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Specified by:
hasVmFamilyin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- Whether the vmFamily field is set.
-
getVmFamily
The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Specified by:
getVmFamilyin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- The vmFamily.
-
getVmFamilyBytes
public com.google.protobuf.ByteString getVmFamilyBytes()The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Specified by:
getVmFamilyBytesin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- The bytes for vmFamily.
-
setVmFamily
The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Parameters:
value- The vmFamily to set.- Returns:
- This builder for chaining.
-
clearVmFamily
The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Returns:
- This builder for chaining.
-
setVmFamilyBytes
public FutureResourcesSpecAggregateResources.Builder setVmFamilyBytes(com.google.protobuf.ByteString value) The VM family that all instances scheduled against this reservation must belong to. Use for TPU reservations. Check the VmFamily enum for the list of possible values.
optional string vm_family = 125017580;- Parameters:
value- The bytes for vmFamily to set.- Returns:
- This builder for chaining.
-
hasWorkloadType
public boolean hasWorkloadType()Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Specified by:
hasWorkloadTypein interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- Whether the workloadType field is set.
-
getWorkloadType
Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Specified by:
getWorkloadTypein interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- The workloadType.
-
getWorkloadTypeBytes
public com.google.protobuf.ByteString getWorkloadTypeBytes()Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Specified by:
getWorkloadTypeBytesin interfaceFutureResourcesSpecAggregateResourcesOrBuilder- Returns:
- The bytes for workloadType.
-
setWorkloadType
Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Parameters:
value- The workloadType to set.- Returns:
- This builder for chaining.
-
clearWorkloadType
Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Returns:
- This builder for chaining.
-
setWorkloadTypeBytes
public FutureResourcesSpecAggregateResources.Builder setWorkloadTypeBytes(com.google.protobuf.ByteString value) Workload type. Use for TPU reservations. Check the WorkloadType enum for the list of possible values.
optional string workload_type = 273432322;- Parameters:
value- The bytes for workloadType to set.- Returns:
- This builder for chaining.
-