Class AccessLocations.Builder (2.46.0)

public static final class AccessLocations.Builder extends GeneratedMessageV3.Builder<AccessLocations.Builder> implements AccessLocationsOrBuilder

Home office and physical location of the principal.

Protobuf type google.cloud.accessapproval.v1.AccessLocations

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessLocations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessLocations.Builder
Overrides

build()

public AccessLocations build()
Returns
Type Description
AccessLocations

buildPartial()

public AccessLocations buildPartial()
Returns
Type Description
AccessLocations

clear()

public AccessLocations.Builder clear()
Returns
Type Description
AccessLocations.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AccessLocations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccessLocations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessLocations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AccessLocations.Builder
Overrides

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
Type Description
AccessLocations.Builder

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
Type Description
AccessLocations.Builder

This builder for chaining.

clone()

public AccessLocations.Builder clone()
Returns
Type Description
AccessLocations.Builder
Overrides

getDefaultInstanceForType()

public AccessLocations getDefaultInstanceForType()
Returns
Type Description
AccessLocations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The principalOfficeCountry.

getPrincipalOfficeCountryBytes()

public 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;

Returns
Type Description
ByteString

The bytes for principalOfficeCountry.

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;

Returns
Type Description
String

The principalPhysicalLocationCountry.

getPrincipalPhysicalLocationCountryBytes()

public 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;

Returns
Type Description
ByteString

The bytes for principalPhysicalLocationCountry.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessLocations other)

public AccessLocations.Builder mergeFrom(AccessLocations other)
Parameter
Name Description
other AccessLocations
Returns
Type Description
AccessLocations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessLocations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessLocations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AccessLocations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AccessLocations.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessLocations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessLocations.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AccessLocations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessLocations.Builder
Overrides

setPrincipalOfficeCountry(String value)

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;

Parameter
Name Description
value String

The principalOfficeCountry to set.

Returns
Type Description
AccessLocations.Builder

This builder for chaining.

setPrincipalOfficeCountryBytes(ByteString value)

public AccessLocations.Builder setPrincipalOfficeCountryBytes(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;

Parameter
Name Description
value ByteString

The bytes for principalOfficeCountry to set.

Returns
Type Description
AccessLocations.Builder

This builder for chaining.

setPrincipalPhysicalLocationCountry(String value)

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;

Parameter
Name Description
value String

The principalPhysicalLocationCountry to set.

Returns
Type Description
AccessLocations.Builder

This builder for chaining.

setPrincipalPhysicalLocationCountryBytes(ByteString value)

public AccessLocations.Builder setPrincipalPhysicalLocationCountryBytes(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;

Parameter
Name Description
value ByteString

The bytes for principalPhysicalLocationCountry to set.

Returns
Type Description
AccessLocations.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AccessLocations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccessLocations.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessLocations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessLocations.Builder
Overrides