Class ExecuteOntapPatchRequest.Builder (0.70.0)

public static final class ExecuteOntapPatchRequest.Builder extends GeneratedMessage.Builder<ExecuteOntapPatchRequest.Builder> implements ExecuteOntapPatchRequestOrBuilder

Request message for ExecuteOntapPatch API.

Protobuf type google.cloud.netapp.v1.ExecuteOntapPatchRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ExecuteOntapPatchRequest build()
Returns
Type Description
ExecuteOntapPatchRequest

buildPartial()

public ExecuteOntapPatchRequest buildPartial()
Returns
Type Description
ExecuteOntapPatchRequest

clear()

public ExecuteOntapPatchRequest.Builder clear()
Returns
Type Description
ExecuteOntapPatchRequest.Builder
Overrides

clearBody()

public ExecuteOntapPatchRequest.Builder clearBody()

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecuteOntapPatchRequest.Builder

clearOntapPath()

public ExecuteOntapPatchRequest.Builder clearOntapPath()

Required. The resource path of the ONTAP resource. Format: projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}. For example: projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.

string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExecuteOntapPatchRequest.Builder

This builder for chaining.

getBody()

public Struct getBody()

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Struct

The body.

getBodyBuilder()

public Struct.Builder getBodyBuilder()

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getBodyOrBuilder()

public StructOrBuilder getBodyOrBuilder()

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public ExecuteOntapPatchRequest getDefaultInstanceForType()
Returns
Type Description
ExecuteOntapPatchRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOntapPath()

public String getOntapPath()

Required. The resource path of the ONTAP resource. Format: projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}. For example: projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.

string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The ontapPath.

getOntapPathBytes()

public ByteString getOntapPathBytes()

Required. The resource path of the ONTAP resource. Format: projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}. For example: projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.

string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for ontapPath.

hasBody()

public boolean hasBody()

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the body field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBody(Struct value)

public ExecuteOntapPatchRequest.Builder mergeBody(Struct value)

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Struct
Returns
Type Description
ExecuteOntapPatchRequest.Builder

mergeFrom(ExecuteOntapPatchRequest other)

public ExecuteOntapPatchRequest.Builder mergeFrom(ExecuteOntapPatchRequest other)
Parameter
Name Description
other ExecuteOntapPatchRequest
Returns
Type Description
ExecuteOntapPatchRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExecuteOntapPatchRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExecuteOntapPatchRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExecuteOntapPatchRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExecuteOntapPatchRequest.Builder
Overrides

setBody(Struct value)

public ExecuteOntapPatchRequest.Builder setBody(Struct value)

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Struct
Returns
Type Description
ExecuteOntapPatchRequest.Builder

setBody(Struct.Builder builderForValue)

public ExecuteOntapPatchRequest.Builder setBody(Struct.Builder builderForValue)

Required. The raw JSON body of the request. The body should be in the format of the ONTAP resource. For example: <code><code> { "body": { "field1": "value1", "field2": "value2", } } </code></code>

.google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExecuteOntapPatchRequest.Builder

setOntapPath(String value)

public ExecuteOntapPatchRequest.Builder setOntapPath(String value)

Required. The resource path of the ONTAP resource. Format: projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}. For example: projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.

string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The ontapPath to set.

Returns
Type Description
ExecuteOntapPatchRequest.Builder

This builder for chaining.

setOntapPathBytes(ByteString value)

public ExecuteOntapPatchRequest.Builder setOntapPathBytes(ByteString value)

Required. The resource path of the ONTAP resource. Format: projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}. For example: projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes.

string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for ontapPath to set.

Returns
Type Description
ExecuteOntapPatchRequest.Builder

This builder for chaining.