public static final class MachineSeries.Builder extends GeneratedMessageV3.Builder<MachineSeries.Builder> implements MachineSeriesOrBuilder
A Compute Engine machine series.
Protobuf type google.cloud.migrationcenter.v1.MachineSeries
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MachineSeries.BuilderImplements
MachineSeriesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MachineSeries.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
build()
public MachineSeries build()
Returns | |
---|---|
Type | Description |
MachineSeries |
buildPartial()
public MachineSeries buildPartial()
Returns | |
---|---|
Type | Description |
MachineSeries |
clear()
public MachineSeries.Builder clear()
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
clearCode()
public MachineSeries.Builder clearCode()
Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.
string code = 1;
Returns | |
---|---|
Type | Description |
MachineSeries.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MachineSeries.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MachineSeries.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
clone()
public MachineSeries.Builder clone()
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
getCode()
public String getCode()
Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.
string code = 1;
Returns | |
---|---|
Type | Description |
String | The code. |
getCodeBytes()
public ByteString getCodeBytes()
Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.
string code = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for code. |
getDefaultInstanceForType()
public MachineSeries getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MachineSeries |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MachineSeries other)
public MachineSeries.Builder mergeFrom(MachineSeries other)
Parameter | |
---|---|
Name | Description |
other | MachineSeries |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MachineSeries.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MachineSeries.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachineSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
setCode(String value)
public MachineSeries.Builder setCode(String value)
Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.
string code = 1;
Parameter | |
---|---|
Name | Description |
value | String The code to set. |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder | This builder for chaining. |
setCodeBytes(ByteString value)
public MachineSeries.Builder setCodeBytes(ByteString value)
Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.
string code = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for code to set. |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MachineSeries.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MachineSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MachineSeries.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MachineSeries.Builder |