Package namespace.cloud.compute.v1beta
Class Compute.InstanceShape.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.InstanceShape.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.InstanceShape.Builder>
namespace.cloud.compute.v1beta.Compute.InstanceShape.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Compute.InstanceShapeOrBuilder
- Enclosing class:
Compute.InstanceShape
public static final class Compute.InstanceShape.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Compute.InstanceShape.Builder>
implements Compute.InstanceShapeOrBuilder
Defines an instance shape: the combination of CPU, RAM and Disk that the instance should use. The size of the ephemeral disk automatically scales with the selected CPU/RAM allocation. See also https://namespace.so/docs/architecture/compute/machine-shapes#storage-allocation Usable values are constrained by policy, and are typically only settable in values as powers of two.Protobuf type
namespace.cloud.compute.v1beta.InstanceShape-
Method Summary
Modifier and TypeMethodDescriptionaddAllSelectors(Iterable<? extends Labels.Label> values) Provide additional constraints to instance selection.addSelectors(int index, Labels.Label value) Provide additional constraints to instance selection.addSelectors(int index, Labels.Label.Builder builderForValue) Provide additional constraints to instance selection.addSelectors(Labels.Label value) Provide additional constraints to instance selection.addSelectors(Labels.Label.Builder builderForValue) Provide additional constraints to instance selection.Provide additional constraints to instance selection.addSelectorsBuilder(int index) Provide additional constraints to instance selection.build()clear()Architecture of the instance, e.g.Memory in megabytes.clearOs()Operating system of the instance, e.g.Provide additional constraints to instance selection.Number of virtual CPUs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorArchitecture of the instance, e.g.com.google.protobuf.ByteStringArchitecture of the instance, e.g.intMemory in megabytes.getOs()Operating system of the instance, e.g.com.google.protobuf.ByteStringOperating system of the instance, e.g.getSelectors(int index) Provide additional constraints to instance selection.getSelectorsBuilder(int index) Provide additional constraints to instance selection.Provide additional constraints to instance selection.intProvide additional constraints to instance selection.Provide additional constraints to instance selection.getSelectorsOrBuilder(int index) Provide additional constraints to instance selection.List<? extends Labels.LabelOrBuilder> Provide additional constraints to instance selection.intNumber of virtual CPUs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Compute.InstanceShape other) removeSelectors(int index) Provide additional constraints to instance selection.setMachineArch(String value) Architecture of the instance, e.g.setMachineArchBytes(com.google.protobuf.ByteString value) Architecture of the instance, e.g.setMemoryMegabytes(int value) Memory in megabytes.Operating system of the instance, e.g.setOsBytes(com.google.protobuf.ByteString value) Operating system of the instance, e.g.setSelectors(int index, Labels.Label value) Provide additional constraints to instance selection.setSelectors(int index, Labels.Label.Builder builderForValue) Provide additional constraints to instance selection.setVirtualCpu(int value) Number of virtual CPUs.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<Compute.InstanceShape.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<Compute.InstanceShape.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<Compute.InstanceShape.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<Compute.InstanceShape.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Compute.InstanceShape.Builder>
-
mergeFrom
public Compute.InstanceShape.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<Compute.InstanceShape.Builder>- Throws:
IOException
-
getVirtualCpu
public int getVirtualCpu()Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16).
int32 virtual_cpu = 1;- Specified by:
getVirtualCpuin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The virtualCpu.
-
setVirtualCpu
Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16).
int32 virtual_cpu = 1;- Parameters:
value- The virtualCpu to set.- Returns:
- This builder for chaining.
-
clearVirtualCpu
Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16).
int32 virtual_cpu = 1;- Returns:
- This builder for chaining.
-
getMemoryMegabytes
public int getMemoryMegabytes()Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU).
int32 memory_megabytes = 2;- Specified by:
getMemoryMegabytesin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The memoryMegabytes.
-
setMemoryMegabytes
Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU).
int32 memory_megabytes = 2;- Parameters:
value- The memoryMegabytes to set.- Returns:
- This builder for chaining.
-
clearMemoryMegabytes
Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU).
int32 memory_megabytes = 2;- Returns:
- This builder for chaining.
-
getMachineArch
Architecture of the instance, e.g. "amd64" or "arm64".
string machine_arch = 3;- Specified by:
getMachineArchin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The machineArch.
-
getMachineArchBytes
public com.google.protobuf.ByteString getMachineArchBytes()Architecture of the instance, e.g. "amd64" or "arm64".
string machine_arch = 3;- Specified by:
getMachineArchBytesin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The bytes for machineArch.
-
setMachineArch
Architecture of the instance, e.g. "amd64" or "arm64".
string machine_arch = 3;- Parameters:
value- The machineArch to set.- Returns:
- This builder for chaining.
-
clearMachineArch
Architecture of the instance, e.g. "amd64" or "arm64".
string machine_arch = 3;- Returns:
- This builder for chaining.
-
setMachineArchBytes
Architecture of the instance, e.g. "amd64" or "arm64".
string machine_arch = 3;- Parameters:
value- The bytes for machineArch to set.- Returns:
- This builder for chaining.
-
getOs
Operating system of the instance, e.g. "linux" or "macos".
string os = 4;- Specified by:
getOsin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The os.
-
getOsBytes
public com.google.protobuf.ByteString getOsBytes()Operating system of the instance, e.g. "linux" or "macos".
string os = 4;- Specified by:
getOsBytesin interfaceCompute.InstanceShapeOrBuilder- Returns:
- The bytes for os.
-
setOs
Operating system of the instance, e.g. "linux" or "macos".
string os = 4;- Parameters:
value- The os to set.- Returns:
- This builder for chaining.
-
clearOs
Operating system of the instance, e.g. "linux" or "macos".
string os = 4;- Returns:
- This builder for chaining.
-
setOsBytes
Operating system of the instance, e.g. "linux" or "macos".
string os = 4;- Parameters:
value- The bytes for os to set.- Returns:
- This builder for chaining.
-
getSelectorsList
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;- Specified by:
getSelectorsListin interfaceCompute.InstanceShapeOrBuilder
-
getSelectorsCount
public int getSelectorsCount()Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;- Specified by:
getSelectorsCountin interfaceCompute.InstanceShapeOrBuilder
-
getSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;- Specified by:
getSelectorsin interfaceCompute.InstanceShapeOrBuilder
-
setSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
setSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addAllSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
clearSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
removeSelectors
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
getSelectorsBuilder
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
getSelectorsOrBuilder
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;- Specified by:
getSelectorsOrBuilderin interfaceCompute.InstanceShapeOrBuilder
-
getSelectorsOrBuilderList
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;- Specified by:
getSelectorsOrBuilderListin interfaceCompute.InstanceShapeOrBuilder
-
addSelectorsBuilder
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
addSelectorsBuilder
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5; -
getSelectorsBuilderList
Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors
repeated .namespace.stdlib.Label selectors = 5;
-