Class ReadFileRequest.Builder (0.84.0)

public static final class ReadFileRequest.Builder extends GeneratedMessage.Builder<ReadFileRequest.Builder> implements ReadFileRequestOrBuilder

ReadFile request message.

Protobuf type google.cloud.dataform.v1beta1.ReadFileRequest

Static Methods

getDescriptor()

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

Methods

build()

public ReadFileRequest build()
Returns
Type Description
ReadFileRequest

buildPartial()

public ReadFileRequest buildPartial()
Returns
Type Description
ReadFileRequest

clear()

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

clearPath()

public ReadFileRequest.Builder clearPath()

Required. The file's full path including filename, relative to the workspace root.

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

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

clearRevision()

public ReadFileRequest.Builder clearRevision()

Optional. The Git revision of the file to return. If left empty, the current contents of path will be returned.

string revision = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

clearWorkspace()

public ReadFileRequest.Builder clearWorkspace()

Required. The workspace's name.

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

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ReadFileRequest getDefaultInstanceForType()
Returns
Type Description
ReadFileRequest

getDescriptorForType()

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

getPath()

public String getPath()

Required. The file's full path including filename, relative to the workspace root.

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. The file's full path including filename, relative to the workspace root.

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

Returns
Type Description
ByteString

The bytes for path.

getRevision()

public String getRevision()

Optional. The Git revision of the file to return. If left empty, the current contents of path will be returned.

string revision = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The revision.

getRevisionBytes()

public ByteString getRevisionBytes()

Optional. The Git revision of the file to return. If left empty, the current contents of path will be returned.

string revision = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for revision.

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReadFileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPath(String value)

public ReadFileRequest.Builder setPath(String value)

Required. The file's full path including filename, relative to the workspace root.

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

setPathBytes(ByteString value)

public ReadFileRequest.Builder setPathBytes(ByteString value)

Required. The file's full path including filename, relative to the workspace root.

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

setRevision(String value)

public ReadFileRequest.Builder setRevision(String value)

Optional. The Git revision of the file to return. If left empty, the current contents of path will be returned.

string revision = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The revision to set.

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

setRevisionBytes(ByteString value)

public ReadFileRequest.Builder setRevisionBytes(ByteString value)

Optional. The Git revision of the file to return. If left empty, the current contents of path will be returned.

string revision = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for revision to set.

Returns
Type Description
ReadFileRequest.Builder

This builder for chaining.

setWorkspace(String value)

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

This builder for chaining.

setWorkspaceBytes(ByteString value)

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

This builder for chaining.