Class InstanceWithNamedPorts.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<InstanceWithNamedPorts.Builder> implements InstanceWithNamedPortsOrBuilder
 
Protobuf type google.cloud.compute.v1.InstanceWithNamedPorts
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceWithNamedPorts.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstanceWithNamedPorts.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstanceWithNamedPorts.Builder>
    • getDefaultInstanceForType

      public InstanceWithNamedPorts getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InstanceWithNamedPorts build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstanceWithNamedPorts buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceWithNamedPorts.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceWithNamedPorts.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InstanceWithNamedPorts.Builder>
    • mergeFrom

      public InstanceWithNamedPorts.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceWithNamedPorts.Builder>
      Throws:
      IOException
    • hasInstance

      public boolean hasInstance()
       Output only. [Output Only] The URL of the instance.
       
      optional string instance = 18257045;
      Specified by:
      hasInstance in interface InstanceWithNamedPortsOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       Output only. [Output Only] The URL of the instance.
       
      optional string instance = 18257045;
      Specified by:
      getInstance in interface InstanceWithNamedPortsOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Output only. [Output Only] The URL of the instance.
       
      optional string instance = 18257045;
      Specified by:
      getInstanceBytes in interface InstanceWithNamedPortsOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public InstanceWithNamedPorts.Builder setInstance(String value)
       Output only. [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. [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. [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. [Output Only] The named ports that belong to this instance group.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsList in interface InstanceWithNamedPortsOrBuilder
    • getNamedPortsCount

      public int getNamedPortsCount()
       Output only. [Output Only] The named ports that belong to this instance group.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsCount in interface InstanceWithNamedPortsOrBuilder
    • getNamedPorts

      public NamedPort getNamedPorts(int index)
       Output only. [Output Only] The named ports that belong to this instance group.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPorts in interface InstanceWithNamedPortsOrBuilder
    • setNamedPorts

      public InstanceWithNamedPorts.Builder setNamedPorts(int index, NamedPort value)
       Output only. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [Output Only] The named ports that belong to this instance group.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsOrBuilder in interface InstanceWithNamedPortsOrBuilder
    • getNamedPortsOrBuilderList

      public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()
       Output only. [Output Only] The named ports that belong to this instance group.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsOrBuilderList in interface InstanceWithNamedPortsOrBuilder
    • addNamedPortsBuilder

      public NamedPort.Builder addNamedPortsBuilder()
       Output only. [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. [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. [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. [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 interface InstanceWithNamedPortsOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [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 interface InstanceWithNamedPortsOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [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 interface InstanceWithNamedPortsOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public InstanceWithNamedPorts.Builder setStatus(String value)
       Output only. [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. [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. [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.