Class Resources.Builder

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

    public static final class Resources.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Builder>
    implements ResourcesOrBuilder
     The system resources for the pipeline run.
    
     At least one zone or region must be specified or the pipeline run will fail.
     
    Protobuf type google.cloud.lifesciences.v2beta.Resources
    • 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<Resources.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Resources.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<Resources.Builder>
        Throws:
        IOException
      • getRegionsList

        public com.google.protobuf.ProtocolStringList getRegionsList()
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Specified by:
        getRegionsList in interface ResourcesOrBuilder
        Returns:
        A list containing the regions.
      • getRegionsCount

        public int getRegionsCount()
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Specified by:
        getRegionsCount in interface ResourcesOrBuilder
        Returns:
        The count of regions.
      • getRegions

        public String getRegions​(int index)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Specified by:
        getRegions in interface ResourcesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The regions at the given index.
      • getRegionsBytes

        public com.google.protobuf.ByteString getRegionsBytes​(int index)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Specified by:
        getRegionsBytes in interface ResourcesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the regions at the given index.
      • setRegions

        public Resources.Builder setRegions​(int index,
                                            String value)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Parameters:
        index - The index to set the value at.
        value - The regions to set.
        Returns:
        This builder for chaining.
      • addRegions

        public Resources.Builder addRegions​(String value)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Parameters:
        value - The regions to add.
        Returns:
        This builder for chaining.
      • addAllRegions

        public Resources.Builder addAllRegions​(Iterable<String> values)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Parameters:
        values - The regions to add.
        Returns:
        This builder for chaining.
      • clearRegions

        public Resources.Builder clearRegions()
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Returns:
        This builder for chaining.
      • addRegionsBytes

        public Resources.Builder addRegionsBytes​(com.google.protobuf.ByteString value)
         The list of regions allowed for VM allocation. If set, the `zones` field
         must not be set.
         
        repeated string regions = 2;
        Parameters:
        value - The bytes of the regions to add.
        Returns:
        This builder for chaining.
      • getZonesList

        public com.google.protobuf.ProtocolStringList getZonesList()
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Specified by:
        getZonesList in interface ResourcesOrBuilder
        Returns:
        A list containing the zones.
      • getZonesCount

        public int getZonesCount()
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Specified by:
        getZonesCount in interface ResourcesOrBuilder
        Returns:
        The count of zones.
      • getZones

        public String getZones​(int index)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Specified by:
        getZones in interface ResourcesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The zones at the given index.
      • getZonesBytes

        public com.google.protobuf.ByteString getZonesBytes​(int index)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Specified by:
        getZonesBytes in interface ResourcesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the zones at the given index.
      • setZones

        public Resources.Builder setZones​(int index,
                                          String value)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Parameters:
        index - The index to set the value at.
        value - The zones to set.
        Returns:
        This builder for chaining.
      • addZones

        public Resources.Builder addZones​(String value)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Parameters:
        value - The zones to add.
        Returns:
        This builder for chaining.
      • addAllZones

        public Resources.Builder addAllZones​(Iterable<String> values)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Parameters:
        values - The zones to add.
        Returns:
        This builder for chaining.
      • clearZones

        public Resources.Builder clearZones()
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Returns:
        This builder for chaining.
      • addZonesBytes

        public Resources.Builder addZonesBytes​(com.google.protobuf.ByteString value)
         The list of zones allowed for VM allocation. If set, the `regions` field
         must not be set.
         
        repeated string zones = 3;
        Parameters:
        value - The bytes of the zones to add.
        Returns:
        This builder for chaining.
      • hasVirtualMachine

        public boolean hasVirtualMachine()
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
        Specified by:
        hasVirtualMachine in interface ResourcesOrBuilder
        Returns:
        Whether the virtualMachine field is set.
      • getVirtualMachine

        public VirtualMachine getVirtualMachine()
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
        Specified by:
        getVirtualMachine in interface ResourcesOrBuilder
        Returns:
        The virtualMachine.
      • setVirtualMachine

        public Resources.Builder setVirtualMachine​(VirtualMachine value)
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
      • setVirtualMachine

        public Resources.Builder setVirtualMachine​(VirtualMachine.Builder builderForValue)
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
      • mergeVirtualMachine

        public Resources.Builder mergeVirtualMachine​(VirtualMachine value)
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
      • clearVirtualMachine

        public Resources.Builder clearVirtualMachine()
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
      • getVirtualMachineBuilder

        public VirtualMachine.Builder getVirtualMachineBuilder()
         The virtual machine specification.
         
        .google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;
      • setUnknownFields

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

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