Class ExecuteOntapPostRequest.Builder (0.70.0)

public static final class ExecuteOntapPostRequest.Builder extends GeneratedMessage.Builder<ExecuteOntapPostRequest.Builder> implements ExecuteOntapPostRequestOrBuilder

Request message for ExecuteOntapPost API.

Protobuf type google.cloud.netapp.v1.ExecuteOntapPostRequest

Static Methods

getDescriptor()

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

Methods

build()

public ExecuteOntapPostRequest build()
Returns
Type Description
ExecuteOntapPostRequest

buildPartial()

public ExecuteOntapPostRequest buildPartial()
Returns
Type Description
ExecuteOntapPostRequest

clear()

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

clearBody()

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

clearOntapPath()

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.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 ExecuteOntapPostRequest getDefaultInstanceForType()
Returns
Type Description
ExecuteOntapPostRequest

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 ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

mergeFrom(ExecuteOntapPostRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBody(Struct value)

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

setBody(Struct.Builder builderForValue)

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

setOntapPath(String value)

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

This builder for chaining.

setOntapPathBytes(ByteString value)

public ExecuteOntapPostRequest.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
ExecuteOntapPostRequest.Builder

This builder for chaining.