public static final class ResourceLocation.Builder extends GeneratedMessageV3.Builder<ResourceLocation.Builder> implements ResourceLocationOrBuilder
Location 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | int The 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 | int The 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 | int The 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 | int The 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 | int The index to set the value at. |
value | String The 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 | int The index to set the value at. |
value | String The 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 |