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 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.ByteString
getCurrentLocationsBytes
(int index) The locations of a resource after the execution of the operation.int
The locations of a resource after the execution of the operation.com.google.protobuf.ProtocolStringList
The locations of a resource after the execution of the operation.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getOriginalLocations
(int index) The locations of a resource prior to the execution of the operation.com.google.protobuf.ByteString
getOriginalLocationsBytes
(int index) The locations of a resource prior to the execution of the operation.int
The locations of a resource prior to the execution of the operation.com.google.protobuf.ProtocolStringList
The locations of a resource prior to the execution of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(ResourceLocation other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final ResourceLocation.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
setField
public ResourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
setRepeatedField
public ResourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
addRepeatedField
public ResourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCurrentLocationsList
in 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:
getCurrentLocationsCount
in 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:
getCurrentLocations
in 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:
getCurrentLocationsBytes
in 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:
getOriginalLocationsList
in 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:
getOriginalLocationsCount
in 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:
getOriginalLocations
in 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:
getOriginalLocationsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeUnknownFields
public final ResourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-