Class Content.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Content.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Content.Builder
Overrides

build()

public Content build()
Returns
TypeDescription
Content

buildPartial()

public Content buildPartial()
Returns
TypeDescription
Content

clear()

public Content.Builder clear()
Returns
TypeDescription
Content.Builder
Overrides

clearContent()

public Content.Builder clearContent()
Returns
TypeDescription
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
TypeDescription
Content.Builder

clearData()

public Content.Builder clearData()
Returns
TypeDescription
Content.Builder

clearDataText()

public Content.Builder clearDataText()

Required. Content data in string format.

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

Returns
TypeDescription
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
TypeDescription
Content.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Content.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Content.Builder
Overrides

clearLabels()

public Content.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
Content.Builder

This builder for chaining.

clearNotebook()

public Content.Builder clearNotebook()

Notebook related configurations.

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

Returns
TypeDescription
Content.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Content.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Content.Builder

clone()

public Content.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getContentCase()

public Content.ContentCase getContentCase()
Returns
TypeDescription
Content.ContentCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Content creation time.

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

Returns
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Content creation time.

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

Returns
TypeDescription
TimestampOrBuilder

getDataCase()

public Content.DataCase getDataCase()
Returns
TypeDescription
Content.DataCase

getDataText()

public String getDataText()

Required. Content data in string format.

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

Returns
TypeDescription
String

The dataText.

getDataTextBytes()

public ByteString getDataTextBytes()

Required. Content data in string format.

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

Returns
TypeDescription
ByteString

The bytes for dataText.

getDefaultInstanceForType()

public Content getDefaultInstanceForType()
Returns
TypeDescription
Content

getDescription()

public String getDescription()

Optional. Description of the content.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the content.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNotebook()

public Content.Notebook getNotebook()

Notebook related configurations.

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

Returns
TypeDescription
Content.Notebook

The notebook.

getNotebookBuilder()

public Content.Notebook.Builder getNotebookBuilder()

Notebook related configurations.

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

Returns
TypeDescription
Content.Notebook.Builder

getNotebookOrBuilder()

public Content.NotebookOrBuilder getNotebookOrBuilder()

Notebook related configurations.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for path.

getSqlScript()

public Content.SqlScript getSqlScript()

Sql Script related configurations.

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

Returns
TypeDescription
Content.SqlScript

The sqlScript.

getSqlScriptBuilder()

public Content.SqlScript.Builder getSqlScriptBuilder()

Sql Script related configurations.

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

Returns
TypeDescription
Content.SqlScript.Builder

getSqlScriptOrBuilder()

public Content.SqlScriptOrBuilder getSqlScriptOrBuilder()

Sql Script related configurations.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Content creation time.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the dataText field is set.

hasNotebook()

public boolean hasNotebook()

Notebook related configurations.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Content.Builder

mergeFrom(Content other)

public Content.Builder mergeFrom(Content other)
Parameter
NameDescription
otherContent
Returns
TypeDescription
Content.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Content.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Content.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Content.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueContent.Notebook
Returns
TypeDescription
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
NameDescription
valueContent.SqlScript
Returns
TypeDescription
Content.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Content.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The dataText to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataText to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Content.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Content.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueContent.Notebook
Returns
TypeDescription
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
NameDescription
builderForValueContent.Notebook.Builder
Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueContent.SqlScript
Returns
TypeDescription
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
NameDescription
builderForValueContent.SqlScript.Builder
Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Content.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Content.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Content.Builder