Class ResourcePolicyGroupPlacementPolicy.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<ResourcePolicyGroupPlacementPolicy.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<ResourcePolicyGroupPlacementPolicy.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean hasAvailabilityDomainCount()
         The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
         
        optional int32 availability_domain_count = 12453432;
        Specified by:
        hasAvailabilityDomainCount in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        Whether the availabilityDomainCount field is set.
      • getAvailabilityDomainCount

        public int getAvailabilityDomainCount()
         The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
         
        optional int32 availability_domain_count = 12453432;
        Specified by:
        getAvailabilityDomainCount in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        The availabilityDomainCount.
      • setAvailabilityDomainCount

        public ResourcePolicyGroupPlacementPolicy.Builder setAvailabilityDomainCount​(int value)
         The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
         
        optional int32 availability_domain_count = 12453432;
        Parameters:
        value - The availabilityDomainCount to set.
        Returns:
        This builder for chaining.
      • clearAvailabilityDomainCount

        public ResourcePolicyGroupPlacementPolicy.Builder clearAvailabilityDomainCount()
         The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
         
        optional int32 availability_domain_count = 12453432;
        Returns:
        This builder for chaining.
      • hasCollocation

        public boolean hasCollocation()
         Specifies network collocation
         Check the Collocation enum for the list of possible values.
         
        optional string collocation = 511156533;
        Specified by:
        hasCollocation in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        Whether the collocation field is set.
      • getCollocationBytes

        public com.google.protobuf.ByteString getCollocationBytes()
         Specifies network collocation
         Check the Collocation enum for the list of possible values.
         
        optional string collocation = 511156533;
        Specified by:
        getCollocationBytes in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        The bytes for collocation.
      • setCollocation

        public ResourcePolicyGroupPlacementPolicy.Builder setCollocation​(String value)
         Specifies network collocation
         Check the Collocation enum for the list of possible values.
         
        optional string collocation = 511156533;
        Parameters:
        value - The collocation to set.
        Returns:
        This builder for chaining.
      • clearCollocation

        public ResourcePolicyGroupPlacementPolicy.Builder clearCollocation()
         Specifies network collocation
         Check the Collocation enum for the list of possible values.
         
        optional string collocation = 511156533;
        Returns:
        This builder for chaining.
      • setCollocationBytes

        public ResourcePolicyGroupPlacementPolicy.Builder setCollocationBytes​(com.google.protobuf.ByteString value)
         Specifies network collocation
         Check the Collocation enum for the list of possible values.
         
        optional string collocation = 511156533;
        Parameters:
        value - The bytes for collocation to set.
        Returns:
        This builder for chaining.
      • hasVmCount

        public boolean hasVmCount()
         Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
         
        optional int32 vm_count = 261463431;
        Specified by:
        hasVmCount in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        Whether the vmCount field is set.
      • getVmCount

        public int getVmCount()
         Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
         
        optional int32 vm_count = 261463431;
        Specified by:
        getVmCount in interface ResourcePolicyGroupPlacementPolicyOrBuilder
        Returns:
        The vmCount.
      • setVmCount

        public ResourcePolicyGroupPlacementPolicy.Builder setVmCount​(int value)
         Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
         
        optional int32 vm_count = 261463431;
        Parameters:
        value - The vmCount to set.
        Returns:
        This builder for chaining.
      • clearVmCount

        public ResourcePolicyGroupPlacementPolicy.Builder clearVmCount()
         Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
         
        optional int32 vm_count = 261463431;
        Returns:
        This builder for chaining.