Class GcsPath.Builder (0.23.0)

public static final class GcsPath.Builder extends GeneratedMessage.Builder<GcsPath.Builder> implements GcsPathOrBuilder

Specifies a Cloud Storage bucket and, optionally, a path inside the bucket.

Protobuf type google.cloud.lustre.v1.GcsPath

Implements

GcsPathOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public GcsPath build()
Returns
Type Description
GcsPath

buildPartial()

public GcsPath buildPartial()
Returns
Type Description
GcsPath

clear()

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

clearUri()

public GcsPath.Builder clearUri()

Required. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://<bucket_name>/<optional_path_inside_bucket>/. If a path inside the bucket is specified, it must end with a forward slash (/).

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcsPath.Builder

This builder for chaining.

getDefaultInstanceForType()

public GcsPath getDefaultInstanceForType()
Returns
Type Description
GcsPath

getDescriptorForType()

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

getUri()

public String getUri()

Required. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://<bucket_name>/<optional_path_inside_bucket>/. If a path inside the bucket is specified, it must end with a forward slash (/).

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://<bucket_name>/<optional_path_inside_bucket>/. If a path inside the bucket is specified, it must end with a forward slash (/).

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcsPath other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setUri(String value)

public GcsPath.Builder setUri(String value)

Required. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://<bucket_name>/<optional_path_inside_bucket>/. If a path inside the bucket is specified, it must end with a forward slash (/).

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
GcsPath.Builder

This builder for chaining.

setUriBytes(ByteString value)

public GcsPath.Builder setUriBytes(ByteString value)

Required. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://<bucket_name>/<optional_path_inside_bucket>/. If a path inside the bucket is specified, it must end with a forward slash (/).

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
GcsPath.Builder

This builder for chaining.