Package com.google.cloud.compute.v1
Class InstanceWithNamedPorts.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
- com.google.cloud.compute.v1.InstanceWithNamedPorts.Builder
-
- All Implemented Interfaces:
InstanceWithNamedPortsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- InstanceWithNamedPorts
public static final class InstanceWithNamedPorts.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder> implements InstanceWithNamedPortsOrBuilder
google.cloud.compute.v1.InstanceWithNamedPorts
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceWithNamedPorts.Builder
addAllNamedPorts(Iterable<? extends NamedPort> values)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
addNamedPorts(int index, NamedPort value)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
addNamedPorts(int index, NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
addNamedPorts(NamedPort value)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
addNamedPorts(NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.NamedPort.Builder
addNamedPortsBuilder()
[Output Only] The named ports that belong to this instance group.NamedPort.Builder
addNamedPortsBuilder(int index)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceWithNamedPorts
build()
InstanceWithNamedPorts
buildPartial()
InstanceWithNamedPorts.Builder
clear()
InstanceWithNamedPorts.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InstanceWithNamedPorts.Builder
clearInstance()
[Output Only] The URL of the instance.InstanceWithNamedPorts.Builder
clearNamedPorts()
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InstanceWithNamedPorts.Builder
clearStatus()
[Output Only] The status of the instance.InstanceWithNamedPorts.Builder
clone()
InstanceWithNamedPorts
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInstance()
[Output Only] The URL of the instance.com.google.protobuf.ByteString
getInstanceBytes()
[Output Only] The URL of the instance.NamedPort
getNamedPorts(int index)
[Output Only] The named ports that belong to this instance group.NamedPort.Builder
getNamedPortsBuilder(int index)
[Output Only] The named ports that belong to this instance group.List<NamedPort.Builder>
getNamedPortsBuilderList()
[Output Only] The named ports that belong to this instance group.int
getNamedPortsCount()
[Output Only] The named ports that belong to this instance group.List<NamedPort>
getNamedPortsList()
[Output Only] The named ports that belong to this instance group.NamedPortOrBuilder
getNamedPortsOrBuilder(int index)
[Output Only] The named ports that belong to this instance group.List<? extends NamedPortOrBuilder>
getNamedPortsOrBuilderList()
[Output Only] The named ports that belong to this instance group.String
getStatus()
[Output Only] The status of the instance.com.google.protobuf.ByteString
getStatusBytes()
[Output Only] The status of the instance.boolean
hasInstance()
[Output Only] The URL of the instance.boolean
hasStatus()
[Output Only] The status of the instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
InstanceWithNamedPorts.Builder
mergeFrom(InstanceWithNamedPorts other)
InstanceWithNamedPorts.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InstanceWithNamedPorts.Builder
mergeFrom(com.google.protobuf.Message other)
InstanceWithNamedPorts.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InstanceWithNamedPorts.Builder
removeNamedPorts(int index)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceWithNamedPorts.Builder
setInstance(String value)
[Output Only] The URL of the instance.InstanceWithNamedPorts.Builder
setInstanceBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the instance.InstanceWithNamedPorts.Builder
setNamedPorts(int index, NamedPort value)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
setNamedPorts(int index, NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.InstanceWithNamedPorts.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InstanceWithNamedPorts.Builder
setStatus(String value)
[Output Only] The status of the instance.InstanceWithNamedPorts.Builder
setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the instance.InstanceWithNamedPorts.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
clear
public InstanceWithNamedPorts.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
getDefaultInstanceForType
public InstanceWithNamedPorts getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceWithNamedPorts build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceWithNamedPorts buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceWithNamedPorts.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
setField
public InstanceWithNamedPorts.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
clearField
public InstanceWithNamedPorts.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
clearOneof
public InstanceWithNamedPorts.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
setRepeatedField
public InstanceWithNamedPorts.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
addRepeatedField
public InstanceWithNamedPorts.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
mergeFrom
public InstanceWithNamedPorts.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceWithNamedPorts.Builder>
-
mergeFrom
public InstanceWithNamedPorts.Builder mergeFrom(InstanceWithNamedPorts other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
mergeFrom
public InstanceWithNamedPorts.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceWithNamedPorts.Builder>
- Throws:
IOException
-
hasInstance
public boolean hasInstance()
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Specified by:
hasInstance
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
public String getInstance()
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Specified by:
getInstance
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Specified by:
getInstanceBytes
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
public InstanceWithNamedPorts.Builder setInstance(String value)
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
public InstanceWithNamedPorts.Builder clearInstance()
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Returns:
- This builder for chaining.
-
setInstanceBytes
public InstanceWithNamedPorts.Builder setInstanceBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the instance.
optional string instance = 18257045;
- Parameters:
value
- The bytes for instance to set.- Returns:
- This builder for chaining.
-
getNamedPortsList
public List<NamedPort> getNamedPortsList()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
- Specified by:
getNamedPortsList
in interfaceInstanceWithNamedPortsOrBuilder
-
getNamedPortsCount
public int getNamedPortsCount()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
- Specified by:
getNamedPortsCount
in interfaceInstanceWithNamedPortsOrBuilder
-
getNamedPorts
public NamedPort getNamedPorts(int index)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
- Specified by:
getNamedPorts
in interfaceInstanceWithNamedPortsOrBuilder
-
setNamedPorts
public InstanceWithNamedPorts.Builder setNamedPorts(int index, NamedPort value)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
setNamedPorts
public InstanceWithNamedPorts.Builder setNamedPorts(int index, NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addNamedPorts
public InstanceWithNamedPorts.Builder addNamedPorts(NamedPort value)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addNamedPorts
public InstanceWithNamedPorts.Builder addNamedPorts(int index, NamedPort value)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addNamedPorts
public InstanceWithNamedPorts.Builder addNamedPorts(NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addNamedPorts
public InstanceWithNamedPorts.Builder addNamedPorts(int index, NamedPort.Builder builderForValue)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addAllNamedPorts
public InstanceWithNamedPorts.Builder addAllNamedPorts(Iterable<? extends NamedPort> values)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
clearNamedPorts
public InstanceWithNamedPorts.Builder clearNamedPorts()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
removeNamedPorts
public InstanceWithNamedPorts.Builder removeNamedPorts(int index)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
getNamedPortsBuilder
public NamedPort.Builder getNamedPortsBuilder(int index)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
getNamedPortsOrBuilder
public NamedPortOrBuilder getNamedPortsOrBuilder(int index)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
- Specified by:
getNamedPortsOrBuilder
in interfaceInstanceWithNamedPortsOrBuilder
-
getNamedPortsOrBuilderList
public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
- Specified by:
getNamedPortsOrBuilderList
in interfaceInstanceWithNamedPortsOrBuilder
-
addNamedPortsBuilder
public NamedPort.Builder addNamedPortsBuilder()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
addNamedPortsBuilder
public NamedPort.Builder addNamedPortsBuilder(int index)
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
getNamedPortsBuilderList
public List<NamedPort.Builder> getNamedPortsBuilderList()
[Output Only] The named ports that belong to this instance group.
repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
-
hasStatus
public boolean hasStatus()
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Specified by:
hasStatus
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public String getStatus()
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Specified by:
getStatus
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Specified by:
getStatusBytes
in interfaceInstanceWithNamedPortsOrBuilder
- Returns:
- The bytes for status.
-
setStatus
public InstanceWithNamedPorts.Builder setStatus(String value)
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public InstanceWithNamedPorts.Builder clearStatus()
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Returns:
- This builder for chaining.
-
setStatusBytes
public InstanceWithNamedPorts.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the instance. Check the Status enum for the list of possible values.
optional string status = 181260274;
- Parameters:
value
- The bytes for status to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstanceWithNamedPorts.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
mergeUnknownFields
public final InstanceWithNamedPorts.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
-
-