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

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

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

        public AllocationPolicy.PlacementPolicy 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<AllocationPolicy.PlacementPolicy.Builder>
      • getCollocation

        public String getCollocation()
         UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
         want VMs to be located close to each other for low network latency
         between the VMs. No placement policy will be generated when collocation
         is UNSPECIFIED.
         
        string collocation = 1;
        Specified by:
        getCollocation in interface AllocationPolicy.PlacementPolicyOrBuilder
        Returns:
        The collocation.
      • getCollocationBytes

        public com.google.protobuf.ByteString getCollocationBytes()
         UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
         want VMs to be located close to each other for low network latency
         between the VMs. No placement policy will be generated when collocation
         is UNSPECIFIED.
         
        string collocation = 1;
        Specified by:
        getCollocationBytes in interface AllocationPolicy.PlacementPolicyOrBuilder
        Returns:
        The bytes for collocation.
      • setCollocation

        public AllocationPolicy.PlacementPolicy.Builder setCollocation​(String value)
         UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
         want VMs to be located close to each other for low network latency
         between the VMs. No placement policy will be generated when collocation
         is UNSPECIFIED.
         
        string collocation = 1;
        Parameters:
        value - The collocation to set.
        Returns:
        This builder for chaining.
      • clearCollocation

        public AllocationPolicy.PlacementPolicy.Builder clearCollocation()
         UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
         want VMs to be located close to each other for low network latency
         between the VMs. No placement policy will be generated when collocation
         is UNSPECIFIED.
         
        string collocation = 1;
        Returns:
        This builder for chaining.
      • setCollocationBytes

        public AllocationPolicy.PlacementPolicy.Builder setCollocationBytes​(com.google.protobuf.ByteString value)
         UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
         want VMs to be located close to each other for low network latency
         between the VMs. No placement policy will be generated when collocation
         is UNSPECIFIED.
         
        string collocation = 1;
        Parameters:
        value - The bytes for collocation to set.
        Returns:
        This builder for chaining.
      • getMaxDistance

        public long getMaxDistance()
         When specified, causes the job to fail if more than max_distance logical
         switches are required between VMs. Batch uses the most compact possible
         placement of VMs even when max_distance is not specified. An explicit
         max_distance makes that level of compactness a strict requirement.
         Not yet implemented
         
        int64 max_distance = 2;
        Specified by:
        getMaxDistance in interface AllocationPolicy.PlacementPolicyOrBuilder
        Returns:
        The maxDistance.
      • setMaxDistance

        public AllocationPolicy.PlacementPolicy.Builder setMaxDistance​(long value)
         When specified, causes the job to fail if more than max_distance logical
         switches are required between VMs. Batch uses the most compact possible
         placement of VMs even when max_distance is not specified. An explicit
         max_distance makes that level of compactness a strict requirement.
         Not yet implemented
         
        int64 max_distance = 2;
        Parameters:
        value - The maxDistance to set.
        Returns:
        This builder for chaining.
      • clearMaxDistance

        public AllocationPolicy.PlacementPolicy.Builder clearMaxDistance()
         When specified, causes the job to fail if more than max_distance logical
         switches are required between VMs. Batch uses the most compact possible
         placement of VMs even when max_distance is not specified. An explicit
         max_distance makes that level of compactness a strict requirement.
         Not yet implemented
         
        int64 max_distance = 2;
        Returns:
        This builder for chaining.