Class ServerNetworkTemplate.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<ServerNetworkTemplate.Builder>
      • clear

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

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

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

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

        public ServerNetworkTemplate.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<ServerNetworkTemplate.Builder>
      • clearField

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

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

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

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

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

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

        public String getName()
         Output only. Template's unique name. The full resource name follows the
         pattern:
         `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
         Generally, the {server_network_template} follows the syntax of
         "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ServerNetworkTemplateOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Template's unique name. The full resource name follows the
         pattern:
         `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
         Generally, the {server_network_template} follows the syntax of
         "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ServerNetworkTemplateOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ServerNetworkTemplate.Builder setName​(String value)
         Output only. Template's unique name. The full resource name follows the
         pattern:
         `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
         Generally, the {server_network_template} follows the syntax of
         "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ServerNetworkTemplate.Builder clearName()
         Output only. Template's unique name. The full resource name follows the
         pattern:
         `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
         Generally, the {server_network_template} follows the syntax of
         "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ServerNetworkTemplate.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Template's unique name. The full resource name follows the
         pattern:
         `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
         Generally, the {server_network_template} follows the syntax of
         "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getApplicableInstanceTypesList

        public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList()
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Specified by:
        getApplicableInstanceTypesList in interface ServerNetworkTemplateOrBuilder
        Returns:
        A list containing the applicableInstanceTypes.
      • getApplicableInstanceTypesCount

        public int getApplicableInstanceTypesCount()
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Specified by:
        getApplicableInstanceTypesCount in interface ServerNetworkTemplateOrBuilder
        Returns:
        The count of applicableInstanceTypes.
      • getApplicableInstanceTypes

        public String getApplicableInstanceTypes​(int index)
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Specified by:
        getApplicableInstanceTypes in interface ServerNetworkTemplateOrBuilder
        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 template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Specified by:
        getApplicableInstanceTypesBytes in interface ServerNetworkTemplateOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the applicableInstanceTypes at the given index.
      • setApplicableInstanceTypes

        public ServerNetworkTemplate.Builder setApplicableInstanceTypes​(int index,
                                                                        String value)
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Parameters:
        index - The index to set the value at.
        value - The applicableInstanceTypes to set.
        Returns:
        This builder for chaining.
      • addApplicableInstanceTypes

        public ServerNetworkTemplate.Builder addApplicableInstanceTypes​(String value)
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Parameters:
        value - The applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • addAllApplicableInstanceTypes

        public ServerNetworkTemplate.Builder addAllApplicableInstanceTypes​(Iterable<String> values)
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Parameters:
        values - The applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • clearApplicableInstanceTypes

        public ServerNetworkTemplate.Builder clearApplicableInstanceTypes()
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Returns:
        This builder for chaining.
      • addApplicableInstanceTypesBytes

        public ServerNetworkTemplate.Builder addApplicableInstanceTypesBytes​(com.google.protobuf.ByteString value)
         Instance types this template is applicable to.
         
        repeated string applicable_instance_types = 2;
        Parameters:
        value - The bytes of the applicableInstanceTypes to add.
        Returns:
        This builder for chaining.
      • getLogicalInterfacesCount

        public int getLogicalInterfacesCount()
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
        Specified by:
        getLogicalInterfacesCount in interface ServerNetworkTemplateOrBuilder
      • clearLogicalInterfaces

        public ServerNetworkTemplate.Builder clearLogicalInterfaces()
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • removeLogicalInterfaces

        public ServerNetworkTemplate.Builder removeLogicalInterfaces​(int index)
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • getLogicalInterfacesBuilder

        public ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder​(int index)
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • addLogicalInterfacesBuilder

        public ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder()
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • addLogicalInterfacesBuilder

        public ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder​(int index)
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • getLogicalInterfacesBuilderList

        public List<ServerNetworkTemplate.LogicalInterface.Builder> getLogicalInterfacesBuilderList()
         Logical interfaces.
         
        repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3;
      • setUnknownFields

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

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