Class ResourceLocation.Builder (2.33.0)

public static final class ResourceLocation.Builder extends GeneratedMessageV3.Builder<ResourceLocation.Builder> implements ResourceLocationOrBuilder

Location information about a resource.

Protobuf type google.cloud.audit.ResourceLocation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCurrentLocations(Iterable<String> values)

public ResourceLocation.Builder addAllCurrentLocations(Iterable<String> values)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameter
NameDescription
valuesIterable<String>

The currentLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addAllOriginalLocations(Iterable<String> values)

public ResourceLocation.Builder addAllOriginalLocations(Iterable<String> values)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameter
NameDescription
valuesIterable<String>

The originalLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addCurrentLocations(String value)

public ResourceLocation.Builder addCurrentLocations(String value)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameter
NameDescription
valueString

The currentLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addCurrentLocationsBytes(ByteString value)

public ResourceLocation.Builder addCurrentLocationsBytes(ByteString value)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameter
NameDescription
valueByteString

The bytes of the currentLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addOriginalLocations(String value)

public ResourceLocation.Builder addOriginalLocations(String value)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameter
NameDescription
valueString

The originalLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addOriginalLocationsBytes(ByteString value)

public ResourceLocation.Builder addOriginalLocationsBytes(ByteString value)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameter
NameDescription
valueByteString

The bytes of the originalLocations to add.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceLocation build()
Returns
TypeDescription
ResourceLocation

buildPartial()

public ResourceLocation buildPartial()
Returns
TypeDescription
ResourceLocation

clear()

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

clearCurrentLocations()

public ResourceLocation.Builder clearCurrentLocations()

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceLocation.Builder
Overrides

clearOriginalLocations()

public ResourceLocation.Builder clearOriginalLocations()

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

clone()

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

getCurrentLocations(int index)

public String getCurrentLocations(int index)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The currentLocations at the given index.

getCurrentLocationsBytes(int index)

public ByteString getCurrentLocationsBytes(int index)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the currentLocations at the given index.

getCurrentLocationsCount()

public int getCurrentLocationsCount()

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Returns
TypeDescription
int

The count of currentLocations.

getCurrentLocationsList()

public ProtocolStringList getCurrentLocationsList()

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the currentLocations.

getDefaultInstanceForType()

public ResourceLocation getDefaultInstanceForType()
Returns
TypeDescription
ResourceLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOriginalLocations(int index)

public String getOriginalLocations(int index)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The originalLocations at the given index.

getOriginalLocationsBytes(int index)

public ByteString getOriginalLocationsBytes(int index)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the originalLocations at the given index.

getOriginalLocationsCount()

public int getOriginalLocationsCount()

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Returns
TypeDescription
int

The count of originalLocations.

getOriginalLocationsList()

public ProtocolStringList getOriginalLocationsList()

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the originalLocations.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceLocation other)

public ResourceLocation.Builder mergeFrom(ResourceLocation other)
Parameter
NameDescription
otherResourceLocation
Returns
TypeDescription
ResourceLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCurrentLocations(int index, String value)

public ResourceLocation.Builder setCurrentLocations(int index, String value)

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the 'original_locations' field. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string current_locations = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The currentLocations to set.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOriginalLocations(int index, String value)

public ResourceLocation.Builder setOriginalLocations(int index, String value)

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example:

 "europe-west1-a"
 "us-east1"
 "nam3"

repeated string original_locations = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The originalLocations to set.

Returns
TypeDescription
ResourceLocation.Builder

This builder for chaining.

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

public ResourceLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResourceLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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