Class OSImage.Builder

  • All Implemented Interfaces:
    OSImageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OSImage

    public static final class OSImage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OSImage.Builder>
    implements OSImageOrBuilder
     Operation System image.
     
    Protobuf type google.cloud.baremetalsolution.v2.OSImage
    • 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<OSImage.Builder>
      • clear

        public OSImage.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<OSImage.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<OSImage.Builder>
      • getDefaultInstanceForType

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

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

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

        public OSImage.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<OSImage.Builder>
      • setField

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

        public OSImage.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<OSImage.Builder>
      • clearOneof

        public OSImage.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<OSImage.Builder>
      • setRepeatedField

        public OSImage.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<OSImage.Builder>
      • addRepeatedField

        public OSImage.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<OSImage.Builder>
      • mergeFrom

        public OSImage.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<OSImage.Builder>
      • isInitialized

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

        public OSImage.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<OSImage.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. OS Image's unique name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface OSImageOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. OS Image's unique name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface OSImageOrBuilder
        Returns:
        The bytes for name.
      • setName

        public OSImage.Builder setName​(String value)
         Output only. OS Image's unique name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public OSImage.Builder clearName()
         Output only. OS Image's unique name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public OSImage.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. OS Image's unique name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getCodeBytes

        public com.google.protobuf.ByteString getCodeBytes()
         OS Image code.
         
        string code = 2;
        Specified by:
        getCodeBytes in interface OSImageOrBuilder
        Returns:
        The bytes for code.
      • setCode

        public OSImage.Builder setCode​(String value)
         OS Image code.
         
        string code = 2;
        Parameters:
        value - The code to set.
        Returns:
        This builder for chaining.
      • clearCode

        public OSImage.Builder clearCode()
         OS Image code.
         
        string code = 2;
        Returns:
        This builder for chaining.
      • setCodeBytes

        public OSImage.Builder setCodeBytes​(com.google.protobuf.ByteString value)
         OS Image code.
         
        string code = 2;
        Parameters:
        value - The bytes for code to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         OS Image description.
         
        string description = 3;
        Specified by:
        getDescription in interface OSImageOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         OS Image description.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface OSImageOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public OSImage.Builder setDescription​(String value)
         OS Image description.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public OSImage.Builder clearDescription()
         OS Image description.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public OSImage.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         OS Image description.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getApplicableInstanceTypesList

        public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList()
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Specified by:
        getApplicableInstanceTypesList in interface OSImageOrBuilder
        Returns:
        A list containing the applicableInstanceTypes.
      • getApplicableInstanceTypesCount

        public int getApplicableInstanceTypesCount()
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Specified by:
        getApplicableInstanceTypesCount in interface OSImageOrBuilder
        Returns:
        The count of applicableInstanceTypes.
      • getApplicableInstanceTypes

        public String getApplicableInstanceTypes​(int index)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Specified by:
        getApplicableInstanceTypes in interface OSImageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The applicableInstanceTypes at the given index.
      • getApplicableInstanceTypesBytes

        public com.google.protobuf.ByteString getApplicableInstanceTypesBytes​(int index)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Specified by:
        getApplicableInstanceTypesBytes in interface OSImageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the applicableInstanceTypes at the given index.
      • setApplicableInstanceTypes

        public OSImage.Builder setApplicableInstanceTypes​(int index,
                                                          String value)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Parameters:
        index - The index to set the value at.
        value - The applicableInstanceTypes to set.
        Returns:
        This builder for chaining.
      • addApplicableInstanceTypes

        public OSImage.Builder addApplicableInstanceTypes​(String value)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Parameters:
        value - The applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • addAllApplicableInstanceTypes

        public OSImage.Builder addAllApplicableInstanceTypes​(Iterable<String> values)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Parameters:
        values - The applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • clearApplicableInstanceTypes

        public OSImage.Builder clearApplicableInstanceTypes()
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Returns:
        This builder for chaining.
      • addApplicableInstanceTypesBytes

        public OSImage.Builder addApplicableInstanceTypesBytes​(com.google.protobuf.ByteString value)
         Instance types this image is applicable to.
         [Available
         types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
         
        repeated string applicable_instance_types = 4;
        Parameters:
        value - The bytes of the applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • getSupportedNetworkTemplatesList

        public com.google.protobuf.ProtocolStringList getSupportedNetworkTemplatesList()
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Specified by:
        getSupportedNetworkTemplatesList in interface OSImageOrBuilder
        Returns:
        A list containing the supportedNetworkTemplates.
      • getSupportedNetworkTemplatesCount

        public int getSupportedNetworkTemplatesCount()
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Specified by:
        getSupportedNetworkTemplatesCount in interface OSImageOrBuilder
        Returns:
        The count of supportedNetworkTemplates.
      • getSupportedNetworkTemplates

        public String getSupportedNetworkTemplates​(int index)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Specified by:
        getSupportedNetworkTemplates in interface OSImageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The supportedNetworkTemplates at the given index.
      • getSupportedNetworkTemplatesBytes

        public com.google.protobuf.ByteString getSupportedNetworkTemplatesBytes​(int index)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Specified by:
        getSupportedNetworkTemplatesBytes in interface OSImageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the supportedNetworkTemplates at the given index.
      • setSupportedNetworkTemplates

        public OSImage.Builder setSupportedNetworkTemplates​(int index,
                                                            String value)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Parameters:
        index - The index to set the value at.
        value - The supportedNetworkTemplates to set.
        Returns:
        This builder for chaining.
      • addSupportedNetworkTemplates

        public OSImage.Builder addSupportedNetworkTemplates​(String value)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Parameters:
        value - The supportedNetworkTemplates to add.
        Returns:
        This builder for chaining.
      • addAllSupportedNetworkTemplates

        public OSImage.Builder addAllSupportedNetworkTemplates​(Iterable<String> values)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Parameters:
        values - The supportedNetworkTemplates to add.
        Returns:
        This builder for chaining.
      • clearSupportedNetworkTemplates

        public OSImage.Builder clearSupportedNetworkTemplates()
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Returns:
        This builder for chaining.
      • addSupportedNetworkTemplatesBytes

        public OSImage.Builder addSupportedNetworkTemplatesBytes​(com.google.protobuf.ByteString value)
         Network templates that can be used with this OS Image.
         
        repeated string supported_network_templates = 5;
        Parameters:
        value - The bytes of the supportedNetworkTemplates to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OSImage.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<OSImage.Builder>
      • mergeUnknownFields

        public final OSImage.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<OSImage.Builder>