Class InstanceWithNamedPorts.Builder

    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public InstanceWithNamedPorts.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
      • clearField

        public InstanceWithNamedPorts.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
      • clearOneof

        public InstanceWithNamedPorts.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
      • addRepeatedField

        public InstanceWithNamedPorts.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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] The URL of the instance.
         
        optional string instance = 18257045;
        Specified by:
        hasInstance in interface InstanceWithNamedPortsOrBuilder
        Returns:
        Whether the instance field is set.
      • getInstanceBytes

        public com.google.protobuf.ByteString getInstanceBytes()
         [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] 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.
      • 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 interface InstanceWithNamedPortsOrBuilder
      • 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 interface InstanceWithNamedPortsOrBuilder
      • 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;
      • 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 interface InstanceWithNamedPortsOrBuilder
        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 interface InstanceWithNamedPortsOrBuilder
        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 interface InstanceWithNamedPortsOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>
      • mergeUnknownFields

        public final InstanceWithNamedPorts.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceWithNamedPorts.Builder>