Class AccessLocations.Builder

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

    public static final class AccessLocations.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AccessLocations.Builder>
    implements AccessLocationsOrBuilder
     Home office and physical location of the principal.
     
    Protobuf type google.cloud.accessapproval.v1.AccessLocations
    • 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<AccessLocations.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public AccessLocations.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<AccessLocations.Builder>
        Throws:
        IOException
      • getPrincipalOfficeCountry

        public String getPrincipalOfficeCountry()
         The "home office" location of the principal. A two-letter country code
         (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
         limited situations Google systems may refer refer to a region code instead
         of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_office_country = 1;
        Specified by:
        getPrincipalOfficeCountry in interface AccessLocationsOrBuilder
        Returns:
        The principalOfficeCountry.
      • getPrincipalOfficeCountryBytes

        public com.google.protobuf.ByteString getPrincipalOfficeCountryBytes()
         The "home office" location of the principal. A two-letter country code
         (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
         limited situations Google systems may refer refer to a region code instead
         of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_office_country = 1;
        Specified by:
        getPrincipalOfficeCountryBytes in interface AccessLocationsOrBuilder
        Returns:
        The bytes for principalOfficeCountry.
      • setPrincipalOfficeCountry

        public AccessLocations.Builder setPrincipalOfficeCountry​(String value)
         The "home office" location of the principal. A two-letter country code
         (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
         limited situations Google systems may refer refer to a region code instead
         of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_office_country = 1;
        Parameters:
        value - The principalOfficeCountry to set.
        Returns:
        This builder for chaining.
      • clearPrincipalOfficeCountry

        public AccessLocations.Builder clearPrincipalOfficeCountry()
         The "home office" location of the principal. A two-letter country code
         (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
         limited situations Google systems may refer refer to a region code instead
         of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_office_country = 1;
        Returns:
        This builder for chaining.
      • setPrincipalOfficeCountryBytes

        public AccessLocations.Builder setPrincipalOfficeCountryBytes​(com.google.protobuf.ByteString value)
         The "home office" location of the principal. A two-letter country code
         (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
         limited situations Google systems may refer refer to a region code instead
         of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_office_country = 1;
        Parameters:
        value - The bytes for principalOfficeCountry to set.
        Returns:
        This builder for chaining.
      • getPrincipalPhysicalLocationCountry

        public String getPrincipalPhysicalLocationCountry()
         Physical location of the principal at the time of the access. A
         two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
         a region code. In some limited situations Google systems may refer refer to
         a region code instead of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_physical_location_country = 2;
        Specified by:
        getPrincipalPhysicalLocationCountry in interface AccessLocationsOrBuilder
        Returns:
        The principalPhysicalLocationCountry.
      • getPrincipalPhysicalLocationCountryBytes

        public com.google.protobuf.ByteString getPrincipalPhysicalLocationCountryBytes()
         Physical location of the principal at the time of the access. A
         two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
         a region code. In some limited situations Google systems may refer refer to
         a region code instead of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_physical_location_country = 2;
        Specified by:
        getPrincipalPhysicalLocationCountryBytes in interface AccessLocationsOrBuilder
        Returns:
        The bytes for principalPhysicalLocationCountry.
      • setPrincipalPhysicalLocationCountry

        public AccessLocations.Builder setPrincipalPhysicalLocationCountry​(String value)
         Physical location of the principal at the time of the access. A
         two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
         a region code. In some limited situations Google systems may refer refer to
         a region code instead of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_physical_location_country = 2;
        Parameters:
        value - The principalPhysicalLocationCountry to set.
        Returns:
        This builder for chaining.
      • clearPrincipalPhysicalLocationCountry

        public AccessLocations.Builder clearPrincipalPhysicalLocationCountry()
         Physical location of the principal at the time of the access. A
         two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
         a region code. In some limited situations Google systems may refer refer to
         a region code instead of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_physical_location_country = 2;
        Returns:
        This builder for chaining.
      • setPrincipalPhysicalLocationCountryBytes

        public AccessLocations.Builder setPrincipalPhysicalLocationCountryBytes​(com.google.protobuf.ByteString value)
         Physical location of the principal at the time of the access. A
         two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
         a region code. In some limited situations Google systems may refer refer to
         a region code instead of a country code.
         Possible Region Codes:
        
           * ASI: Asia
           * EUR: Europe
           * OCE: Oceania
           * AFR: Africa
           * NAM: North America
           * SAM: South America
           * ANT: Antarctica
           * ANY: Any location
         
        string principal_physical_location_country = 2;
        Parameters:
        value - The bytes for principalPhysicalLocationCountry to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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