Class Operation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
- com.google.cloud.recommender.v1beta1.Operation.Builder
-
- All Implemented Interfaces:
OperationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Operation
public static final class Operation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder> implements OperationOrBuilder
Contains an operation for a resource loosely based on the JSON-PATCH format with support for: * Custom filters for describing partial array patch. * Extended path values for describing nested arrays. * Custom fields for describing the resource for which the operation is being described. * Allows extension to custom operations not natively supported by RFC6902. See https://tools.ietf.org/html/rfc6902 for details on the original RFC.
Protobuf typegoogle.cloud.recommender.v1beta1.Operation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Operation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Operation
build()
Operation
buildPartial()
Operation.Builder
clear()
Operation.Builder
clearAction()
Type of this operation.Operation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Operation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Operation.Builder
clearPath()
Path to the target field being operated on.Operation.Builder
clearPathFilters()
Operation.Builder
clearPathValue()
Operation.Builder
clearPathValueMatchers()
Operation.Builder
clearResource()
Contains the fully qualified resource name.Operation.Builder
clearResourceType()
Type of GCP resource being modified/tested.Operation.Builder
clearSourcePath()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.Operation.Builder
clearSourceResource()
Can be set with action 'copy' to copy resource configuration across different resources of the same type.Operation.Builder
clearValue()
Value for the `path` field.Operation.Builder
clearValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field.Operation.Builder
clone()
boolean
containsPathFilters(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.boolean
containsPathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.String
getAction()
Type of this operation.com.google.protobuf.ByteString
getActionBytes()
Type of this operation.Operation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,com.google.protobuf.Value>
getMutablePathFilters()
Deprecated.Map<String,ValueMatcher>
getMutablePathValueMatchers()
Deprecated.String
getPath()
Path to the target field being operated on.com.google.protobuf.ByteString
getPathBytes()
Path to the target field being operated on.Map<String,com.google.protobuf.Value>
getPathFilters()
Deprecated.int
getPathFiltersCount()
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.Map<String,com.google.protobuf.Value>
getPathFiltersMap()
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.com.google.protobuf.Value
getPathFiltersOrDefault(String key, com.google.protobuf.Value defaultValue)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.com.google.protobuf.Value
getPathFiltersOrThrow(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.Operation.PathValueCase
getPathValueCase()
Map<String,ValueMatcher>
getPathValueMatchers()
Deprecated.int
getPathValueMatchersCount()
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.Map<String,ValueMatcher>
getPathValueMatchersMap()
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.ValueMatcher
getPathValueMatchersOrDefault(String key, ValueMatcher defaultValue)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.ValueMatcher
getPathValueMatchersOrThrow(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.String
getResource()
Contains the fully qualified resource name.com.google.protobuf.ByteString
getResourceBytes()
Contains the fully qualified resource name.String
getResourceType()
Type of GCP resource being modified/tested.com.google.protobuf.ByteString
getResourceTypeBytes()
Type of GCP resource being modified/tested.String
getSourcePath()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.com.google.protobuf.ByteString
getSourcePathBytes()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.String
getSourceResource()
Can be set with action 'copy' to copy resource configuration across different resources of the same type.com.google.protobuf.ByteString
getSourceResourceBytes()
Can be set with action 'copy' to copy resource configuration across different resources of the same type.com.google.protobuf.Value
getValue()
Value for the `path` field.com.google.protobuf.Value.Builder
getValueBuilder()
Value for the `path` field.ValueMatcher
getValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field.ValueMatcher.Builder
getValueMatcherBuilder()
Can be set for action 'test' for advanced matching for the value of 'path' field.ValueMatcherOrBuilder
getValueMatcherOrBuilder()
Can be set for action 'test' for advanced matching for the value of 'path' field.com.google.protobuf.ValueOrBuilder
getValueOrBuilder()
Value for the `path` field.boolean
hasValue()
Value for the `path` field.boolean
hasValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Operation.Builder
mergeFrom(Operation other)
Operation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Operation.Builder
mergeFrom(com.google.protobuf.Message other)
Operation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Operation.Builder
mergeValue(com.google.protobuf.Value value)
Value for the `path` field.Operation.Builder
mergeValueMatcher(ValueMatcher value)
Can be set for action 'test' for advanced matching for the value of 'path' field.Operation.Builder
putAllPathFilters(Map<String,com.google.protobuf.Value> values)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.Operation.Builder
putAllPathValueMatchers(Map<String,ValueMatcher> values)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.Operation.Builder
putPathFilters(String key, com.google.protobuf.Value value)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.Operation.Builder
putPathValueMatchers(String key, ValueMatcher value)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.Operation.Builder
removePathFilters(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified.Operation.Builder
removePathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements.Operation.Builder
setAction(String value)
Type of this operation.Operation.Builder
setActionBytes(com.google.protobuf.ByteString value)
Type of this operation.Operation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Operation.Builder
setPath(String value)
Path to the target field being operated on.Operation.Builder
setPathBytes(com.google.protobuf.ByteString value)
Path to the target field being operated on.Operation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Operation.Builder
setResource(String value)
Contains the fully qualified resource name.Operation.Builder
setResourceBytes(com.google.protobuf.ByteString value)
Contains the fully qualified resource name.Operation.Builder
setResourceType(String value)
Type of GCP resource being modified/tested.Operation.Builder
setResourceTypeBytes(com.google.protobuf.ByteString value)
Type of GCP resource being modified/tested.Operation.Builder
setSourcePath(String value)
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.Operation.Builder
setSourcePathBytes(com.google.protobuf.ByteString value)
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.Operation.Builder
setSourceResource(String value)
Can be set with action 'copy' to copy resource configuration across different resources of the same type.Operation.Builder
setSourceResourceBytes(com.google.protobuf.ByteString value)
Can be set with action 'copy' to copy resource configuration across different resources of the same type.Operation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Operation.Builder
setValue(com.google.protobuf.Value value)
Value for the `path` field.Operation.Builder
setValue(com.google.protobuf.Value.Builder builderForValue)
Value for the `path` field.Operation.Builder
setValueMatcher(ValueMatcher value)
Can be set for action 'test' for advanced matching for the value of 'path' field.Operation.Builder
setValueMatcher(ValueMatcher.Builder builderForValue)
Can be set for action 'test' for advanced matching for the value of 'path' field.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
clear
public Operation.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<Operation.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<Operation.Builder>
-
getDefaultInstanceForType
public Operation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Operation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Operation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Operation.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<Operation.Builder>
-
setField
public Operation.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<Operation.Builder>
-
clearField
public Operation.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<Operation.Builder>
-
clearOneof
public Operation.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<Operation.Builder>
-
setRepeatedField
public Operation.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<Operation.Builder>
-
addRepeatedField
public Operation.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<Operation.Builder>
-
mergeFrom
public Operation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Operation.Builder>
-
mergeFrom
public Operation.Builder mergeFrom(Operation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
mergeFrom
public Operation.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<Operation.Builder>
- Throws:
IOException
-
getPathValueCase
public Operation.PathValueCase getPathValueCase()
- Specified by:
getPathValueCase
in interfaceOperationOrBuilder
-
clearPathValue
public Operation.Builder clearPathValue()
-
getAction
public String getAction()
Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated.
string action = 1;
- Specified by:
getAction
in interfaceOperationOrBuilder
- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated.
string action = 1;
- Specified by:
getActionBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for action.
-
setAction
public Operation.Builder setAction(String value)
Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated.
string action = 1;
- Parameters:
value
- The action to set.- Returns:
- This builder for chaining.
-
clearAction
public Operation.Builder clearAction()
Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated.
string action = 1;
- Returns:
- This builder for chaining.
-
setActionBytes
public Operation.Builder setActionBytes(com.google.protobuf.ByteString value)
Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated.
string action = 1;
- Parameters:
value
- The bytes for action to set.- Returns:
- This builder for chaining.
-
getResourceType
public String getResourceType()
Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance
string resource_type = 2;
- Specified by:
getResourceType
in interfaceOperationOrBuilder
- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()
Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance
string resource_type = 2;
- Specified by:
getResourceTypeBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for resourceType.
-
setResourceType
public Operation.Builder setResourceType(String value)
Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance
string resource_type = 2;
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
public Operation.Builder clearResourceType()
Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance
string resource_type = 2;
- Returns:
- This builder for chaining.
-
setResourceTypeBytes
public Operation.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance
string resource_type = 2;
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getResource
public String getResource()
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
- Specified by:
getResource
in interfaceOperationOrBuilder
- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
- Specified by:
getResourceBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for resource.
-
setResource
public Operation.Builder setResource(String value)
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
- Parameters:
value
- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
public Operation.Builder clearResource()
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
- Returns:
- This builder for chaining.
-
setResourceBytes
public Operation.Builder setResourceBytes(com.google.protobuf.ByteString value)
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
- Parameters:
value
- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getPath
public String getPath()
Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.
string path = 4;
- Specified by:
getPath
in interfaceOperationOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.
string path = 4;
- Specified by:
getPathBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for path.
-
setPath
public Operation.Builder setPath(String value)
Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.
string path = 4;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public Operation.Builder clearPath()
Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.
string path = 4;
- Returns:
- This builder for chaining.
-
setPathBytes
public Operation.Builder setPathBytes(com.google.protobuf.ByteString value)
Path to the target field being operated on. If the operation is at the resource level, then path should be "/". This field is always populated.
string path = 4;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getSourceResource
public String getSourceResource()
Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = <source> and resource_name = <target>. This field is empty for all other values of `action`.
string source_resource = 5;
- Specified by:
getSourceResource
in interfaceOperationOrBuilder
- Returns:
- The sourceResource.
-
getSourceResourceBytes
public com.google.protobuf.ByteString getSourceResourceBytes()
Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = <source> and resource_name = <target>. This field is empty for all other values of `action`.
string source_resource = 5;
- Specified by:
getSourceResourceBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for sourceResource.
-
setSourceResource
public Operation.Builder setSourceResource(String value)
Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = <source> and resource_name = <target>. This field is empty for all other values of `action`.
string source_resource = 5;
- Parameters:
value
- The sourceResource to set.- Returns:
- This builder for chaining.
-
clearSourceResource
public Operation.Builder clearSourceResource()
Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = <source> and resource_name = <target>. This field is empty for all other values of `action`.
string source_resource = 5;
- Returns:
- This builder for chaining.
-
setSourceResourceBytes
public Operation.Builder setSourceResourceBytes(com.google.protobuf.ByteString value)
Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = "/", from = "/", source_resource = <source> and resource_name = <target>. This field is empty for all other values of `action`.
string source_resource = 5;
- Parameters:
value
- The bytes for sourceResource to set.- Returns:
- This builder for chaining.
-
getSourcePath
public String getSourcePath()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.
string source_path = 6;
- Specified by:
getSourcePath
in interfaceOperationOrBuilder
- Returns:
- The sourcePath.
-
getSourcePathBytes
public com.google.protobuf.ByteString getSourcePathBytes()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.
string source_path = 6;
- Specified by:
getSourcePathBytes
in interfaceOperationOrBuilder
- Returns:
- The bytes for sourcePath.
-
setSourcePath
public Operation.Builder setSourcePath(String value)
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.
string source_path = 6;
- Parameters:
value
- The sourcePath to set.- Returns:
- This builder for chaining.
-
clearSourcePath
public Operation.Builder clearSourcePath()
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.
string source_path = 6;
- Returns:
- This builder for chaining.
-
setSourcePathBytes
public Operation.Builder setSourcePathBytes(com.google.protobuf.ByteString value)
Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types.
string source_path = 6;
- Parameters:
value
- The bytes for sourcePath to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
- Specified by:
hasValue
in interfaceOperationOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public com.google.protobuf.Value getValue()
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
- Specified by:
getValue
in interfaceOperationOrBuilder
- Returns:
- The value.
-
setValue
public Operation.Builder setValue(com.google.protobuf.Value value)
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
-
setValue
public Operation.Builder setValue(com.google.protobuf.Value.Builder builderForValue)
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
-
mergeValue
public Operation.Builder mergeValue(com.google.protobuf.Value value)
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
-
clearValue
public Operation.Builder clearValue()
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
-
getValueBuilder
public com.google.protobuf.Value.Builder getValueBuilder()
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
-
getValueOrBuilder
public com.google.protobuf.ValueOrBuilder getValueOrBuilder()
Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.
.google.protobuf.Value value = 7;
- Specified by:
getValueOrBuilder
in interfaceOperationOrBuilder
-
hasValueMatcher
public boolean hasValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
- Specified by:
hasValueMatcher
in interfaceOperationOrBuilder
- Returns:
- Whether the valueMatcher field is set.
-
getValueMatcher
public ValueMatcher getValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
- Specified by:
getValueMatcher
in interfaceOperationOrBuilder
- Returns:
- The valueMatcher.
-
setValueMatcher
public Operation.Builder setValueMatcher(ValueMatcher value)
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
-
setValueMatcher
public Operation.Builder setValueMatcher(ValueMatcher.Builder builderForValue)
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
-
mergeValueMatcher
public Operation.Builder mergeValueMatcher(ValueMatcher value)
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
-
clearValueMatcher
public Operation.Builder clearValueMatcher()
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
-
getValueMatcherBuilder
public ValueMatcher.Builder getValueMatcherBuilder()
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
-
getValueMatcherOrBuilder
public ValueMatcherOrBuilder getValueMatcherOrBuilder()
Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation.
.google.cloud.recommender.v1beta1.ValueMatcher value_matcher = 10;
- Specified by:
getValueMatcherOrBuilder
in interfaceOperationOrBuilder
-
getPathFiltersCount
public int getPathFiltersCount()
Description copied from interface:OperationOrBuilder
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
- Specified by:
getPathFiltersCount
in interfaceOperationOrBuilder
-
containsPathFilters
public boolean containsPathFilters(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
- Specified by:
containsPathFilters
in interfaceOperationOrBuilder
-
getPathFilters
@Deprecated public Map<String,com.google.protobuf.Value> getPathFilters()
Deprecated.UsegetPathFiltersMap()
instead.- Specified by:
getPathFilters
in interfaceOperationOrBuilder
-
getPathFiltersMap
public Map<String,com.google.protobuf.Value> getPathFiltersMap()
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
- Specified by:
getPathFiltersMap
in interfaceOperationOrBuilder
-
getPathFiltersOrDefault
public com.google.protobuf.Value getPathFiltersOrDefault(String key, com.google.protobuf.Value defaultValue)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
- Specified by:
getPathFiltersOrDefault
in interfaceOperationOrBuilder
-
getPathFiltersOrThrow
public com.google.protobuf.Value getPathFiltersOrThrow(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
- Specified by:
getPathFiltersOrThrow
in interfaceOperationOrBuilder
-
clearPathFilters
public Operation.Builder clearPathFilters()
-
removePathFilters
public Operation.Builder removePathFilters(String key)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
-
getMutablePathFilters
@Deprecated public Map<String,com.google.protobuf.Value> getMutablePathFilters()
Deprecated.Use alternate mutation accessors instead.
-
putPathFilters
public Operation.Builder putPathFilters(String key, com.google.protobuf.Value value)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
-
putAllPathFilters
public Operation.Builder putAllPathFilters(Map<String,com.google.protobuf.Value> values)
Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/condition" : null } ``` * Example: ``` { "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.protobuf.Value> path_filters = 8;
-
getPathValueMatchersCount
public int getPathValueMatchersCount()
Description copied from interface:OperationOrBuilder
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
- Specified by:
getPathValueMatchersCount
in interfaceOperationOrBuilder
-
containsPathValueMatchers
public boolean containsPathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
- Specified by:
containsPathValueMatchers
in interfaceOperationOrBuilder
-
getPathValueMatchers
@Deprecated public Map<String,ValueMatcher> getPathValueMatchers()
Deprecated.UsegetPathValueMatchersMap()
instead.- Specified by:
getPathValueMatchers
in interfaceOperationOrBuilder
-
getPathValueMatchersMap
public Map<String,ValueMatcher> getPathValueMatchersMap()
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
- Specified by:
getPathValueMatchersMap
in interfaceOperationOrBuilder
-
getPathValueMatchersOrDefault
public ValueMatcher getPathValueMatchersOrDefault(String key, ValueMatcher defaultValue)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
- Specified by:
getPathValueMatchersOrDefault
in interfaceOperationOrBuilder
-
getPathValueMatchersOrThrow
public ValueMatcher getPathValueMatchersOrThrow(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
- Specified by:
getPathValueMatchersOrThrow
in interfaceOperationOrBuilder
-
clearPathValueMatchers
public Operation.Builder clearPathValueMatchers()
-
removePathValueMatchers
public Operation.Builder removePathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
-
getMutablePathValueMatchers
@Deprecated public Map<String,ValueMatcher> getMutablePathValueMatchers()
Deprecated.Use alternate mutation accessors instead.
-
putPathValueMatchers
public Operation.Builder putPathValueMatchers(String key, ValueMatcher value)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
-
putAllPathValueMatchers
public Operation.Builder putAllPathValueMatchers(Map<String,ValueMatcher> values)
Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.
map<string, .google.cloud.recommender.v1beta1.ValueMatcher> path_value_matchers = 11;
-
setUnknownFields
public final Operation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
mergeUnknownFields
public final Operation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Operation.Builder>
-
-