Class AccessLocations.Builder (2.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessLocations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AccessLocations.Builder
Overrides

build()

public AccessLocations build()
Returns
TypeDescription
AccessLocations

buildPartial()

public AccessLocations buildPartial()
Returns
TypeDescription
AccessLocations

clear()

public AccessLocations.Builder clear()
Returns
TypeDescription
AccessLocations.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AccessLocations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AccessLocations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessLocations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AccessLocations.Builder

This builder for chaining.

clone()

public AccessLocations.Builder clone()
Returns
TypeDescription
AccessLocations.Builder
Overrides

getDefaultInstanceForType()

public AccessLocations getDefaultInstanceForType()
Returns
TypeDescription
AccessLocations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for principalPhysicalLocationCountry.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccessLocations other)

public AccessLocations.Builder mergeFrom(AccessLocations other)
Parameter
NameDescription
otherAccessLocations
Returns
TypeDescription
AccessLocations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessLocations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessLocations.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AccessLocations.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AccessLocations.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessLocations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessLocations.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AccessLocations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The principalOfficeCountry to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for principalOfficeCountry to set.

Returns
TypeDescription
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
NameDescription
valueString

The principalPhysicalLocationCountry to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for principalPhysicalLocationCountry to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccessLocations.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessLocations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessLocations.Builder
Overrides