Class WriteFileRequest.Builder (0.31.0)

public static final class WriteFileRequest.Builder extends GeneratedMessageV3.Builder<WriteFileRequest.Builder> implements WriteFileRequestOrBuilder

WriteFile request message.

Protobuf type google.cloud.dataform.v1beta1.WriteFileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WriteFileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WriteFileRequest.Builder
Overrides

build()

public WriteFileRequest build()
Returns
Type Description
WriteFileRequest

buildPartial()

public WriteFileRequest buildPartial()
Returns
Type Description
WriteFileRequest

clear()

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

clearContents()

public WriteFileRequest.Builder clearContents()

Required. The file's contents.

bytes contents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WriteFileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WriteFileRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WriteFileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WriteFileRequest.Builder
Overrides

clearPath()

public WriteFileRequest.Builder clearPath()

Required. The file.

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

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

clearWorkspace()

public WriteFileRequest.Builder clearWorkspace()

Required. The workspace's name.

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

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

clone()

public WriteFileRequest.Builder clone()
Returns
Type Description
WriteFileRequest.Builder
Overrides

getContents()

public ByteString getContents()

Required. The file's contents.

bytes contents = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The contents.

getDefaultInstanceForType()

public WriteFileRequest getDefaultInstanceForType()
Returns
Type Description
WriteFileRequest

getDescriptorForType()

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

getPath()

public String getPath()

Required. The file.

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. The file.

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

Returns
Type Description
ByteString

The bytes for path.

getWorkspace()

public String getWorkspace()

Required. The workspace's name.

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

Returns
Type Description
String

The workspace.

getWorkspaceBytes()

public ByteString getWorkspaceBytes()

Required. The workspace's name.

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

Returns
Type Description
ByteString

The bytes for workspace.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WriteFileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WriteFileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WriteFileRequest.Builder
Overrides

setContents(ByteString value)

public WriteFileRequest.Builder setContents(ByteString value)

Required. The file's contents.

bytes contents = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The contents to set.

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WriteFileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WriteFileRequest.Builder
Overrides

setPath(String value)

public WriteFileRequest.Builder setPath(String value)

Required. The file.

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

setPathBytes(ByteString value)

public WriteFileRequest.Builder setPathBytes(ByteString value)

Required. The file.

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

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

public WriteFileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WriteFileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WriteFileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WriteFileRequest.Builder
Overrides

setWorkspace(String value)

public WriteFileRequest.Builder setWorkspace(String value)

Required. The workspace's name.

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

Parameter
Name Description
value String

The workspace to set.

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.

setWorkspaceBytes(ByteString value)

public WriteFileRequest.Builder setWorkspaceBytes(ByteString value)

Required. The workspace's name.

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

Parameter
Name Description
value ByteString

The bytes for workspace to set.

Returns
Type Description
WriteFileRequest.Builder

This builder for chaining.