Class CreateContentRequest.Builder (1.41.0)

public static final class CreateContentRequest.Builder extends GeneratedMessageV3.Builder<CreateContentRequest.Builder> implements CreateContentRequestOrBuilder

Create content request.

Protobuf type google.cloud.dataplex.v1.CreateContentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateContentRequest build()
Returns
Type Description
CreateContentRequest

buildPartial()

public CreateContentRequest buildPartial()
Returns
Type Description
CreateContentRequest

clear()

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

clearContent()

public CreateContentRequest.Builder clearContent()

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateContentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateContentRequest.Builder clearParent()

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

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

Returns
Type Description
CreateContentRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateContentRequest.Builder clearValidateOnly()

Optional. Only validate the request, but do not perform mutations. The default is false.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateContentRequest.Builder

This builder for chaining.

clone()

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

getContent()

public Content getContent()

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content

The content.

getContentBuilder()

public Content.Builder getContentBuilder()

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content.Builder

getContentOrBuilder()

public ContentOrBuilder getContentOrBuilder()

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentOrBuilder

getDefaultInstanceForType()

public CreateContentRequest getDefaultInstanceForType()
Returns
Type Description
CreateContentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

Optional. Only validate the request, but do not perform mutations. The default is false.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasContent()

public boolean hasContent()

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the content field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContent(Content value)

public CreateContentRequest.Builder mergeContent(Content value)

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
CreateContentRequest.Builder

mergeFrom(CreateContentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContent(Content value)

public CreateContentRequest.Builder setContent(Content value)

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
CreateContentRequest.Builder

setContent(Content.Builder builderForValue)

public CreateContentRequest.Builder setContent(Content.Builder builderForValue)

Required. Content resource.

.google.cloud.dataplex.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateContentRequest.Builder setParent(String value)

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateContentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateContentRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateContentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateContentRequest.Builder setValidateOnly(boolean value)

Optional. Only validate the request, but do not perform mutations. The default is false.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateContentRequest.Builder

This builder for chaining.