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

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

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

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

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

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

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

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

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

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

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

        public LocationPolicyLocation.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<LocationPolicyLocation.Builder>
        Throws:
        IOException
      • hasConstraints

        public boolean hasConstraints()
         Constraints that the caller requires on the result distribution in this zone.
         
        optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
        Specified by:
        hasConstraints in interface LocationPolicyLocationOrBuilder
        Returns:
        Whether the constraints field is set.
      • clearConstraints

        public LocationPolicyLocation.Builder clearConstraints()
         Constraints that the caller requires on the result distribution in this zone.
         
        optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
      • getConstraintsBuilder

        public LocationPolicyLocationConstraints.Builder getConstraintsBuilder()
         Constraints that the caller requires on the result distribution in this zone.
         
        optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;
      • hasPreference

        public boolean hasPreference()
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Specified by:
        hasPreference in interface LocationPolicyLocationOrBuilder
        Returns:
        Whether the preference field is set.
      • getPreference

        public String getPreference()
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Specified by:
        getPreference in interface LocationPolicyLocationOrBuilder
        Returns:
        The preference.
      • getPreferenceBytes

        public com.google.protobuf.ByteString getPreferenceBytes()
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Specified by:
        getPreferenceBytes in interface LocationPolicyLocationOrBuilder
        Returns:
        The bytes for preference.
      • setPreference

        public LocationPolicyLocation.Builder setPreference​(String value)
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Parameters:
        value - The preference to set.
        Returns:
        This builder for chaining.
      • clearPreference

        public LocationPolicyLocation.Builder clearPreference()
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Returns:
        This builder for chaining.
      • setPreferenceBytes

        public LocationPolicyLocation.Builder setPreferenceBytes​(com.google.protobuf.ByteString value)
         Preference for a given location. Set to either ALLOW or DENY.
         Check the Preference enum for the list of possible values.
         
        optional string preference = 150781147;
        Parameters:
        value - The bytes for preference to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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