- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.7
- 2.4.1
- 2.3.0
- 2.2.0
- 2.1.5
public static final class Operation.Builder extends 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 type google.cloud.recommender.v1.Operation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Operation.BuilderImplements
OperationOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Operation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Operation.Builder |
build()
public Operation build()
Type | Description |
Operation |
buildPartial()
public Operation buildPartial()
Type | Description |
Operation |
clear()
public Operation.Builder clear()
Type | Description |
Operation.Builder |
clearAction()
public Operation.Builder clearAction()
Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.
string action = 1;
Type | Description |
Operation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Operation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Operation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Operation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Operation.Builder |
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;
Type | Description |
Operation.Builder | This builder for chaining. |
clearPathFilters()
public Operation.Builder clearPathFilters()
Type | Description |
Operation.Builder |
clearPathValue()
public Operation.Builder clearPathValue()
Type | Description |
Operation.Builder |
clearPathValueMatchers()
public Operation.Builder clearPathValueMatchers()
Type | Description |
Operation.Builder |
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;
Type | Description |
Operation.Builder | 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;
Type | Description |
Operation.Builder | 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;
Type | Description |
Operation.Builder | 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;
Type | Description |
Operation.Builder | This builder for chaining. |
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;
Type | Description |
Operation.Builder |
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.v1.ValueMatcher value_matcher = 10;
Type | Description |
Operation.Builder |
clone()
public Operation.Builder clone()
Type | Description |
Operation.Builder |
containsPathFilters(String key)
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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
key | String |
Type | Description |
boolean |
containsPathValueMatchers(String key)
public boolean containsPathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
key | String |
Type | Description |
boolean |
getAction()
public String getAction()
Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.
string action = 1;
Type | Description |
String | The action. |
getActionBytes()
public ByteString getActionBytes()
Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.
string action = 1;
Type | Description |
ByteString | The bytes for action. |
getDefaultInstanceForType()
public Operation getDefaultInstanceForType()
Type | Description |
Operation |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMutablePathFilters()
public Map<String,Value> getMutablePathFilters()
Use alternate mutation accessors instead.
Type | Description |
Map<String,Value> |
getMutablePathValueMatchers()
public Map<String,ValueMatcher> getMutablePathValueMatchers()
Use alternate mutation accessors instead.
Type | Description |
Map<String,ValueMatcher> |
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;
Type | Description |
String | The path. |
getPathBytes()
public 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;
Type | Description |
ByteString | The bytes for path. |
getPathFilters()
public Map<String,Value> getPathFilters()
Use #getPathFiltersMap() instead.
Type | Description |
Map<String,Value> |
getPathFiltersCount()
public 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.
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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Type | Description |
int |
getPathFiltersMap()
public Map<String,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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Type | Description |
Map<String,Value> |
getPathFiltersOrDefault(String key, Value defaultValue)
public Value getPathFiltersOrDefault(String key, 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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
key | String |
defaultValue | Value |
Type | Description |
Value |
getPathFiltersOrThrow(String key)
public 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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
key | String |
Type | Description |
Value |
getPathValueCase()
public Operation.PathValueCase getPathValueCase()
Type | Description |
Operation.PathValueCase |
getPathValueMatchers()
public Map<String,ValueMatcher> getPathValueMatchers()
Use #getPathValueMatchersMap() instead.
Type | Description |
Map<String,ValueMatcher> |
getPathValueMatchersCount()
public int getPathValueMatchersCount()
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Type | Description |
int |
getPathValueMatchersMap()
public Map<String,ValueMatcher> getPathValueMatchersMap()
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Type | Description |
Map<String,ValueMatcher> |
getPathValueMatchersOrDefault(String key, ValueMatcher defaultValue)
public ValueMatcher getPathValueMatchersOrDefault(String key, ValueMatcher defaultValue)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
key | String |
defaultValue | ValueMatcher |
Type | Description |
ValueMatcher |
getPathValueMatchersOrThrow(String key)
public ValueMatcher getPathValueMatchersOrThrow(String key)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
key | String |
Type | Description |
ValueMatcher |
getResource()
public String getResource()
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
Type | Description |
String | The resource. |
getResourceBytes()
public ByteString getResourceBytes()
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
Type | Description |
ByteString | The bytes for resource. |
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;
Type | Description |
String | The resourceType. |
getResourceTypeBytes()
public 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;
Type | Description |
ByteString | The bytes for resourceType. |
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;
Type | Description |
String | The sourcePath. |
getSourcePathBytes()
public 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;
Type | Description |
ByteString | The bytes for sourcePath. |
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;
Type | Description |
String | The sourceResource. |
getSourceResourceBytes()
public 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;
Type | Description |
ByteString | The bytes for sourceResource. |
getValue()
public 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;
Type | Description |
Value | The value. |
getValueBuilder()
public 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;
Type | Description |
Builder |
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.v1.ValueMatcher value_matcher = 10;
Type | Description |
ValueMatcher | The valueMatcher. |
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.v1.ValueMatcher value_matcher = 10;
Type | Description |
ValueMatcher.Builder |
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.v1.ValueMatcher value_matcher = 10;
Type | Description |
ValueMatcherOrBuilder |
getValueOrBuilder()
public 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;
Type | Description |
ValueOrBuilder |
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;
Type | Description |
boolean | Whether the value field is set. |
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.v1.ValueMatcher value_matcher = 10;
Type | Description |
boolean | Whether the valueMatcher field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Operation other)
public Operation.Builder mergeFrom(Operation other)
Name | Description |
other | Operation |
Type | Description |
Operation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Operation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Operation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Operation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Operation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Operation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Operation.Builder |
mergeValue(Value value)
public Operation.Builder mergeValue(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;
Name | Description |
value | Value |
Type | Description |
Operation.Builder |
mergeValueMatcher(ValueMatcher value)
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.v1.ValueMatcher value_matcher = 10;
Name | Description |
value | ValueMatcher |
Type | Description |
Operation.Builder |
putAllPathFilters(Map<String,Value> values)
public Operation.Builder putAllPathFilters(Map<String,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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
values | Map<String,Value> |
Type | Description |
Operation.Builder |
putAllPathValueMatchers(Map<String,ValueMatcher> values)
public Operation.Builder putAllPathValueMatchers(Map<String,ValueMatcher> values)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
values | Map<String,ValueMatcher> |
Type | Description |
Operation.Builder |
putPathFilters(String key, Value value)
public Operation.Builder putPathFilters(String key, 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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
key | String |
value | Value |
Type | Description |
Operation.Builder |
putPathValueMatchers(String key, ValueMatcher value)
public Operation.Builder putPathValueMatchers(String key, ValueMatcher value)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
key | String |
value | ValueMatcher |
Type | Description |
Operation.Builder |
removePathFilters(String key)
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:
` When both path_filters and path_value_matchers are set, an implicit AND must be performed.{ "/bindings/*/role": "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }
map<string, .google.protobuf.Value> path_filters = 8;
Name | Description |
key | String |
Type | Description |
Operation.Builder |
removePathValueMatchers(String key)
public Operation.Builder removePathValueMatchers(String key)
Similar to path_filters, this contains set of filters to apply if path
field referes 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.v1.ValueMatcher> path_value_matchers = 11;
Name | Description |
key | String |
Type | Description |
Operation.Builder |
setAction(String value)
public Operation.Builder setAction(String value)
Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.
string action = 1;
Name | Description |
value | String The action to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setActionBytes(ByteString value)
public Operation.Builder setActionBytes(ByteString value)
Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated.
string action = 1;
Name | Description |
value | ByteString The bytes for action to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Operation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Operation.Builder |
setPath(String value)
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;
Name | Description |
value | String The path to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setPathBytes(ByteString value)
public Operation.Builder setPathBytes(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;
Name | Description |
value | ByteString The bytes for path to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Operation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Operation.Builder |
setResource(String value)
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;
Name | Description |
value | String The resource to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setResourceBytes(ByteString value)
public Operation.Builder setResourceBytes(ByteString value)
Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.
string resource = 3;
Name | Description |
value | ByteString The bytes for resource to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setResourceType(String value)
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;
Name | Description |
value | String The resourceType to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setResourceTypeBytes(ByteString value)
public Operation.Builder setResourceTypeBytes(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;
Name | Description |
value | ByteString The bytes for resourceType to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setSourcePath(String value)
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;
Name | Description |
value | String The sourcePath to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setSourcePathBytes(ByteString value)
public Operation.Builder setSourcePathBytes(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;
Name | Description |
value | ByteString The bytes for sourcePath to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setSourceResource(String value)
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;
Name | Description |
value | String The sourceResource to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setSourceResourceBytes(ByteString value)
public Operation.Builder setSourceResourceBytes(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;
Name | Description |
value | ByteString The bytes for sourceResource to set. |
Type | Description |
Operation.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Operation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Operation.Builder |
setValue(Value value)
public Operation.Builder setValue(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;
Name | Description |
value | Value |
Type | Description |
Operation.Builder |
setValue(Value.Builder builderForValue)
public Operation.Builder setValue(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;
Name | Description |
builderForValue | Builder |
Type | Description |
Operation.Builder |
setValueMatcher(ValueMatcher value)
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.v1.ValueMatcher value_matcher = 10;
Name | Description |
value | ValueMatcher |
Type | Description |
Operation.Builder |
setValueMatcher(ValueMatcher.Builder builderForValue)
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.v1.ValueMatcher value_matcher = 10;
Name | Description |
builderForValue | ValueMatcher.Builder |
Type | Description |
Operation.Builder |