Package com.google.cloud.audit
Class ResourceLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
com.google.cloud.audit.ResourceLocation.Builder
- All Implemented Interfaces:
ResourceLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourceLocation
public static final class ResourceLocation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
implements ResourceLocationOrBuilder
Location information about a resource.Protobuf type
google.cloud.audit.ResourceLocation-
Method Summary
Modifier and TypeMethodDescriptionaddAllCurrentLocations(Iterable<String> values) The locations of a resource after the execution of the operation.addAllOriginalLocations(Iterable<String> values) The locations of a resource prior to the execution of the operation.addCurrentLocations(String value) The locations of a resource after the execution of the operation.addCurrentLocationsBytes(com.google.protobuf.ByteString value) The locations of a resource after the execution of the operation.addOriginalLocations(String value) The locations of a resource prior to the execution of the operation.addOriginalLocationsBytes(com.google.protobuf.ByteString value) The locations of a resource prior to the execution of the operation.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The locations of a resource after the execution of the operation.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The locations of a resource prior to the execution of the operation.clone()getCurrentLocations(int index) The locations of a resource after the execution of the operation.com.google.protobuf.ByteStringgetCurrentLocationsBytes(int index) The locations of a resource after the execution of the operation.intThe locations of a resource after the execution of the operation.com.google.protobuf.ProtocolStringListThe locations of a resource after the execution of the operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetOriginalLocations(int index) The locations of a resource prior to the execution of the operation.com.google.protobuf.ByteStringgetOriginalLocationsBytes(int index) The locations of a resource prior to the execution of the operation.intThe locations of a resource prior to the execution of the operation.com.google.protobuf.ProtocolStringListThe locations of a resource prior to the execution of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ResourceLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ResourceLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCurrentLocations(int index, String value) The locations of a resource after the execution of the operation.setOriginalLocations(int index, String value) The locations of a resource prior to the execution of the operation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ResourceLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
setField
public ResourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
setRepeatedField
public ResourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
addRepeatedField
public ResourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeFrom
public ResourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceLocation.Builder>- Throws:
IOException
-
getCurrentLocationsList
public com.google.protobuf.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;- Specified by:
getCurrentLocationsListin interfaceResourceLocationOrBuilder- Returns:
- A list containing the currentLocations.
-
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;- Specified by:
getCurrentLocationsCountin interfaceResourceLocationOrBuilder- Returns:
- The count of currentLocations.
-
getCurrentLocations
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;- Specified by:
getCurrentLocationsin interfaceResourceLocationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The currentLocations at the given index.
-
getCurrentLocationsBytes
public com.google.protobuf.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;- Specified by:
getCurrentLocationsBytesin interfaceResourceLocationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the currentLocations at the given index.
-
setCurrentLocations
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:
index- The index to set the value at.value- The currentLocations to set.- Returns:
- This builder for chaining.
-
addCurrentLocations
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:
value- The currentLocations to add.- Returns:
- This builder for chaining.
-
addAllCurrentLocations
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:
values- The currentLocations to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCurrentLocationsBytes
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:
value- The bytes of the currentLocations to add.- Returns:
- This builder for chaining.
-
getOriginalLocationsList
public com.google.protobuf.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;- Specified by:
getOriginalLocationsListin interfaceResourceLocationOrBuilder- Returns:
- A list containing the originalLocations.
-
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;- Specified by:
getOriginalLocationsCountin interfaceResourceLocationOrBuilder- Returns:
- The count of originalLocations.
-
getOriginalLocations
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;- Specified by:
getOriginalLocationsin interfaceResourceLocationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The originalLocations at the given index.
-
getOriginalLocationsBytes
public com.google.protobuf.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;- Specified by:
getOriginalLocationsBytesin interfaceResourceLocationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the originalLocations at the given index.
-
setOriginalLocations
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:
index- The index to set the value at.value- The originalLocations to set.- Returns:
- This builder for chaining.
-
addOriginalLocations
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:
value- The originalLocations to add.- Returns:
- This builder for chaining.
-
addAllOriginalLocations
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:
values- The originalLocations to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addOriginalLocationsBytes
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:
value- The bytes of the originalLocations to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeUnknownFields
public final ResourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-