Package com.google.cloud.audit
Class ResourceLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegoogle.cloud.audit.ResourceLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation.BuilderaddAllCurrentLocations(Iterable<String> values)The locations of a resource after the execution of the operation.ResourceLocation.BuilderaddAllOriginalLocations(Iterable<String> values)The locations of a resource prior to the execution of the operation.ResourceLocation.BuilderaddCurrentLocations(String value)The locations of a resource after the execution of the operation.ResourceLocation.BuilderaddCurrentLocationsBytes(com.google.protobuf.ByteString value)The locations of a resource after the execution of the operation.ResourceLocation.BuilderaddOriginalLocations(String value)The locations of a resource prior to the execution of the operation.ResourceLocation.BuilderaddOriginalLocationsBytes(com.google.protobuf.ByteString value)The locations of a resource prior to the execution of the operation.ResourceLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceLocationbuild()ResourceLocationbuildPartial()ResourceLocation.Builderclear()ResourceLocation.BuilderclearCurrentLocations()The locations of a resource after the execution of the operation.ResourceLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ResourceLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ResourceLocation.BuilderclearOriginalLocations()The locations of a resource prior to the execution of the operation.ResourceLocation.Builderclone()StringgetCurrentLocations(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.intgetCurrentLocationsCount()The locations of a resource after the execution of the operation.com.google.protobuf.ProtocolStringListgetCurrentLocationsList()The locations of a resource after the execution of the operation.ResourceLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetOriginalLocations(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.intgetOriginalLocationsCount()The locations of a resource prior to the execution of the operation.com.google.protobuf.ProtocolStringListgetOriginalLocationsList()The locations of a resource prior to the execution of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResourceLocation.BuildermergeFrom(ResourceLocation other)ResourceLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResourceLocation.BuildermergeFrom(com.google.protobuf.Message other)ResourceLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResourceLocation.BuildersetCurrentLocations(int index, String value)The locations of a resource after the execution of the operation.ResourceLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourceLocation.BuildersetOriginalLocations(int index, String value)The locations of a resource prior to the execution of the operation.ResourceLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public ResourceLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResourceLocation.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
public ResourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearOneof
public ResourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public ResourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceLocation.Builder>
-
mergeFrom
public ResourceLocation.Builder mergeFrom(ResourceLocation other)
-
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
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;- 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
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:
index- The index to set the value at.value- The currentLocations to set.- Returns:
- This builder for chaining.
-
addCurrentLocations
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;- Parameters:
value- The currentLocations to add.- Returns:
- This builder for chaining.
-
addAllCurrentLocations
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;- Parameters:
values- The currentLocations to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCurrentLocationsBytes
public ResourceLocation.Builder addCurrentLocationsBytes(com.google.protobuf.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;- 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
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;- 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
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:
index- The index to set the value at.value- The originalLocations to set.- Returns:
- This builder for chaining.
-
addOriginalLocations
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;- Parameters:
value- The originalLocations to add.- Returns:
- This builder for chaining.
-
addAllOriginalLocations
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;- Parameters:
values- The originalLocations to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addOriginalLocationsBytes
public ResourceLocation.Builder addOriginalLocationsBytes(com.google.protobuf.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;- 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>
-
-