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.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
- com.google.cloud.audit.ResourceLocation.Builder
-
- All Implemented Interfaces:
ResourceLocationOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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.Builder
addAllCurrentLocations(java.lang.Iterable<java.lang.String> values)
The locations of a resource after the execution of the operation.ResourceLocation.Builder
addAllOriginalLocations(java.lang.Iterable<java.lang.String> values)
The locations of a resource prior to the execution of the operation.ResourceLocation.Builder
addCurrentLocations(java.lang.String value)
The locations of a resource after the execution of the operation.ResourceLocation.Builder
addCurrentLocationsBytes(com.google.protobuf.ByteString value)
The locations of a resource after the execution of the operation.ResourceLocation.Builder
addOriginalLocations(java.lang.String value)
The locations of a resource prior to the execution of the operation.ResourceLocation.Builder
addOriginalLocationsBytes(com.google.protobuf.ByteString value)
The locations of a resource prior to the execution of the operation.ResourceLocation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ResourceLocation
build()
ResourceLocation
buildPartial()
ResourceLocation.Builder
clear()
ResourceLocation.Builder
clearCurrentLocations()
The locations of a resource after the execution of the operation.ResourceLocation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ResourceLocation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ResourceLocation.Builder
clearOriginalLocations()
The locations of a resource prior to the execution of the operation.ResourceLocation.Builder
clone()
java.lang.String
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
getCurrentLocationsCount()
The locations of a resource after the execution of the operation.com.google.protobuf.ProtocolStringList
getCurrentLocationsList()
The locations of a resource after the execution of the operation.ResourceLocation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
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
getOriginalLocationsCount()
The locations of a resource prior to the execution of the operation.com.google.protobuf.ProtocolStringList
getOriginalLocationsList()
The locations of a resource prior to the execution of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ResourceLocation.Builder
mergeFrom(ResourceLocation other)
ResourceLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ResourceLocation.Builder
mergeFrom(com.google.protobuf.Message other)
ResourceLocation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ResourceLocation.Builder
setCurrentLocations(int index, java.lang.String value)
The locations of a resource after the execution of the operation.ResourceLocation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ResourceLocation.Builder
setOriginalLocations(int index, java.lang.String value)
The locations of a resource prior to the execution of the operation.ResourceLocation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ResourceLocation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clear
public 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.GeneratedMessage.Builder<ResourceLocation.Builder>
-
getDefaultInstanceForType
public ResourceLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResourceLocation.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, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearField
public ResourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
clearOneof
public ResourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
-
mergeFrom
public ResourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceLocation.Builder>
-
mergeFrom
public ResourceLocation.Builder mergeFrom(ResourceLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,ResourceLocation.Builder>
-
mergeFrom
public ResourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.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
public java.lang.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:
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
public ResourceLocation.Builder setCurrentLocations(int index, java.lang.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(java.lang.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(java.lang.Iterable<java.lang.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:
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
public java.lang.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:
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
public ResourceLocation.Builder setOriginalLocations(int index, java.lang.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(java.lang.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(java.lang.Iterable<java.lang.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:
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>
-
-