Class Content.Builder (1.44.0)

public static final class Content.Builder extends GeneratedMessageV3.Builder<Content.Builder> implements ContentOrBuilder

Content represents a user-visible notebook or a sql script

Protobuf type google.cloud.dataplex.v1.Content

Implements

ContentOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Content build()
Returns
Type Description
Content

buildPartial()

public Content buildPartial()
Returns
Type Description
Content

clear()

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

clearContent()

public Content.Builder clearContent()
Returns
Type Description
Content.Builder

clearCreateTime()

public Content.Builder clearCreateTime()

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Content.Builder

clearData()

public Content.Builder clearData()
Returns
Type Description
Content.Builder

clearDataText()

public Content.Builder clearDataText()

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content.Builder

This builder for chaining.

clearDescription()

public Content.Builder clearDescription()

Optional. Description of the content.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Content.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Content.Builder clearLabels()
Returns
Type Description
Content.Builder

clearName()

public Content.Builder clearName()

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Content.Builder

This builder for chaining.

clearNotebook()

public Content.Builder clearNotebook()

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Returns
Type Description
Content.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public Content.Builder clearPath()

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.

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

Returns
Type Description
Content.Builder

This builder for chaining.

clearSqlScript()

public Content.Builder clearSqlScript()

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Returns
Type Description
Content.Builder

clearUid()

public Content.Builder clearUid()

Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Content.Builder

This builder for chaining.

clearUpdateTime()

public Content.Builder clearUpdateTime()

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Content.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getContentCase()

public Content.ContentCase getContentCase()
Returns
Type Description
Content.ContentCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDataCase()

public Content.DataCase getDataCase()
Returns
Type Description
Content.DataCase

getDataText()

public String getDataText()

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataText.

getDataTextBytes()

public ByteString getDataTextBytes()

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataText.

getDefaultInstanceForType()

public Content getDefaultInstanceForType()
Returns
Type Description
Content

getDescription()

public String getDescription()

Optional. Description of the content.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the content.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getNotebook()

public Content.Notebook getNotebook()

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Returns
Type Description
Content.Notebook

The notebook.

getNotebookBuilder()

public Content.Notebook.Builder getNotebookBuilder()

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Returns
Type Description
Content.Notebook.Builder

getNotebookOrBuilder()

public Content.NotebookOrBuilder getNotebookOrBuilder()

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Returns
Type Description
Content.NotebookOrBuilder

getPath()

public String getPath()

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.

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

Returns
Type Description
ByteString

The bytes for path.

getSqlScript()

public Content.SqlScript getSqlScript()

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Returns
Type Description
Content.SqlScript

The sqlScript.

getSqlScriptBuilder()

public Content.SqlScript.Builder getSqlScriptBuilder()

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Returns
Type Description
Content.SqlScript.Builder

getSqlScriptOrBuilder()

public Content.SqlScriptOrBuilder getSqlScriptOrBuilder()

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Returns
Type Description
Content.SqlScriptOrBuilder

getUid()

public String getUid()

Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDataText()

public boolean hasDataText()

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataText field is set.

hasNotebook()

public boolean hasNotebook()

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Returns
Type Description
boolean

Whether the notebook field is set.

hasSqlScript()

public boolean hasSqlScript()

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Returns
Type Description
boolean

Whether the sqlScript field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Content.Builder mergeCreateTime(Timestamp value)

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Content.Builder

mergeFrom(Content other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNotebook(Content.Notebook value)

public Content.Builder mergeNotebook(Content.Notebook value)

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Parameter
Name Description
value Content.Notebook
Returns
Type Description
Content.Builder

mergeSqlScript(Content.SqlScript value)

public Content.Builder mergeSqlScript(Content.SqlScript value)

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Parameter
Name Description
value Content.SqlScript
Returns
Type Description
Content.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Content.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Content.Builder

putAllLabels(Map<String,String> values)

public Content.Builder putAllLabels(Map<String,String> values)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Content.Builder

putLabels(String key, String value)

public Content.Builder putLabels(String key, String value)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Content.Builder

removeLabels(String key)

public Content.Builder removeLabels(String key)

Optional. User defined labels for the content.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Content.Builder

setCreateTime(Timestamp value)

public Content.Builder setCreateTime(Timestamp value)

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Content.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Content.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Content creation time.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Content.Builder

setDataText(String value)

public Content.Builder setDataText(String value)

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataText to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setDataTextBytes(ByteString value)

public Content.Builder setDataTextBytes(ByteString value)

Required. Content data in string format.

string data_text = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataText to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setDescription(String value)

public Content.Builder setDescription(String value)

Optional. Description of the content.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Content.Builder setDescriptionBytes(ByteString value)

Optional. Description of the content.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Content.Builder setName(String value)

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Content.Builder setNameBytes(ByteString value)

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setNotebook(Content.Notebook value)

public Content.Builder setNotebook(Content.Notebook value)

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Parameter
Name Description
value Content.Notebook
Returns
Type Description
Content.Builder

setNotebook(Content.Notebook.Builder builderForValue)

public Content.Builder setNotebook(Content.Notebook.Builder builderForValue)

Notebook related configurations.

.google.cloud.dataplex.v1.Content.Notebook notebook = 101;

Parameter
Name Description
builderForValue Content.Notebook.Builder
Returns
Type Description
Content.Builder

setPath(String value)

public Content.Builder setPath(String value)

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setPathBytes(ByteString value)

public Content.Builder setPathBytes(ByteString value)

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
Content.Builder

This builder for chaining.

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

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

setSqlScript(Content.SqlScript value)

public Content.Builder setSqlScript(Content.SqlScript value)

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Parameter
Name Description
value Content.SqlScript
Returns
Type Description
Content.Builder

setSqlScript(Content.SqlScript.Builder builderForValue)

public Content.Builder setSqlScript(Content.SqlScript.Builder builderForValue)

Sql Script related configurations.

.google.cloud.dataplex.v1.Content.SqlScript sql_script = 100;

Parameter
Name Description
builderForValue Content.SqlScript.Builder
Returns
Type Description
Content.Builder

setUid(String value)

public Content.Builder setUid(String value)

Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Content.Builder setUidBytes(ByteString value)

Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Content.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Content.Builder setUpdateTime(Timestamp value)

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Content.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Content.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the content was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Content.Builder