Class CreateShareRequest.Builder (1.10.0)

public static final class CreateShareRequest.Builder extends GeneratedMessageV3.Builder<CreateShareRequest.Builder> implements CreateShareRequestOrBuilder

CreateShareRequest creates a share.

Protobuf type google.cloud.filestore.v1beta1.CreateShareRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateShareRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

build()

public CreateShareRequest build()
Returns
TypeDescription
CreateShareRequest

buildPartial()

public CreateShareRequest buildPartial()
Returns
TypeDescription
CreateShareRequest

clear()

public CreateShareRequest.Builder clear()
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateShareRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateShareRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

clearParent()

public CreateShareRequest.Builder clearParent()

Required. The Filestore Instance to create the share for, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

clearShare()

public CreateShareRequest.Builder clearShare()

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateShareRequest.Builder

clearShareId()

public CreateShareRequest.Builder clearShareId()

Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string share_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

clone()

public CreateShareRequest.Builder clone()
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateShareRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateShareRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The Filestore Instance to create the share for, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The Filestore Instance to create the share for, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getShare()

public Share getShare()

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Share

The share.

getShareBuilder()

public Share.Builder getShareBuilder()

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Share.Builder

getShareId()

public String getShareId()

Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string share_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The shareId.

getShareIdBytes()

public ByteString getShareIdBytes()

Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string share_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for shareId.

getShareOrBuilder()

public ShareOrBuilder getShareOrBuilder()

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ShareOrBuilder

hasShare()

public boolean hasShare()

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the share field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateShareRequest other)

public CreateShareRequest.Builder mergeFrom(CreateShareRequest other)
Parameter
NameDescription
otherCreateShareRequest
Returns
TypeDescription
CreateShareRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateShareRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateShareRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateShareRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

mergeShare(Share value)

public CreateShareRequest.Builder mergeShare(Share value)

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueShare
Returns
TypeDescription
CreateShareRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateShareRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateShareRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

setParent(String value)

public CreateShareRequest.Builder setParent(String value)

Required. The Filestore Instance to create the share for, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateShareRequest.Builder setParentBytes(ByteString value)

Required. The Filestore Instance to create the share for, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateShareRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateShareRequest.Builder
Overrides

setShare(Share value)

public CreateShareRequest.Builder setShare(Share value)

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueShare
Returns
TypeDescription
CreateShareRequest.Builder

setShare(Share.Builder builderForValue)

public CreateShareRequest.Builder setShare(Share.Builder builderForValue)

Required. A share resource

.google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueShare.Builder
Returns
TypeDescription
CreateShareRequest.Builder

setShareId(String value)

public CreateShareRequest.Builder setShareId(String value)

Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string share_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The shareId to set.

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

setShareIdBytes(ByteString value)

public CreateShareRequest.Builder setShareIdBytes(ByteString value)

Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string share_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for shareId to set.

Returns
TypeDescription
CreateShareRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateShareRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateShareRequest.Builder
Overrides