- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class ResourceLocation.Builder extends GeneratedMessageV3.Builder<ResourceLocation.Builder> implements ResourceLocationOrBuilderLocation information about a resource.
Protobuf type google.cloud.audit.ResourceLocation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceLocation.BuilderImplements
ResourceLocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
values |
Iterable<String>The currentLocations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
values |
Iterable<String>The originalLocations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe currentLocations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the currentLocations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe originalLocations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the originalLocations to add. |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
build()
public ResourceLocation build()| Returns | |
|---|---|
| Type | Description |
ResourceLocation |
|
buildPartial()
public ResourceLocation buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceLocation |
|
clear()
public ResourceLocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
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 | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceLocation.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
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 | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
This builder for chaining. |
clone()
public ResourceLocation.Builder clone()| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the currentLocations. |
getDefaultInstanceForType()
public ResourceLocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceLocation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the originalLocations. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceLocation other)
public ResourceLocation.Builder mergeFrom(ResourceLocation other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceLocation |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe currentLocations to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe originalLocations to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ResourceLocation.Builder |
|