Class SourceGcsBucket.Builder (0.46.0)

public static final class SourceGcsBucket.Builder extends GeneratedMessage.Builder<SourceGcsBucket.Builder> implements SourceGcsBucketOrBuilder

Cloud Storage as the source of a data transfer.

Protobuf type google.cloud.parallelstore.v1.SourceGcsBucket

Static Methods

getDescriptor()

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

Methods

build()

public SourceGcsBucket build()
Returns
Type Description
SourceGcsBucket

buildPartial()

public SourceGcsBucket buildPartial()
Returns
Type Description
SourceGcsBucket

clear()

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

clearUri()

public SourceGcsBucket.Builder clearUri()

Required. URI to a Cloud Storage bucket in the format: gs://<bucket_name>/<path_inside_bucket>. The path inside the bucket is optional.

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

Returns
Type Description
SourceGcsBucket.Builder

This builder for chaining.

getDefaultInstanceForType()

public SourceGcsBucket getDefaultInstanceForType()
Returns
Type Description
SourceGcsBucket

getDescriptorForType()

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

getUri()

public String getUri()

Required. URI to a Cloud Storage bucket in the format: gs://<bucket_name>/<path_inside_bucket>. The path inside the bucket is optional.

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

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. URI to a Cloud Storage bucket in the format: gs://<bucket_name>/<path_inside_bucket>. The path inside the bucket is optional.

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(SourceGcsBucket other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setUri(String value)

public SourceGcsBucket.Builder setUri(String value)

Required. URI to a Cloud Storage bucket in the format: gs://<bucket_name>/<path_inside_bucket>. The path inside the bucket is optional.

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

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
SourceGcsBucket.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SourceGcsBucket.Builder setUriBytes(ByteString value)

Required. URI to a Cloud Storage bucket in the format: gs://<bucket_name>/<path_inside_bucket>. The path inside the bucket is optional.

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

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
SourceGcsBucket.Builder

This builder for chaining.