Class CreateContentRequest.Builder (1.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateContentRequest build()
Returns
TypeDescription
CreateContentRequest

buildPartial()

public CreateContentRequest buildPartial()
Returns
TypeDescription
CreateContentRequest

clear()

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

clearContent()

public CreateContentRequest.Builder clearContent()

Required. Content resource.

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

Returns
TypeDescription
CreateContentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CreateContentRequest.Builder clone()
Returns
TypeDescription
CreateContentRequest.Builder
Overrides

getContent()

public Content getContent()

Required. Content resource.

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

Returns
TypeDescription
Content

The content.

getContentBuilder()

public Content.Builder getContentBuilder()

Required. Content resource.

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

Returns
TypeDescription
Content.Builder

getContentOrBuilder()

public ContentOrBuilder getContentOrBuilder()

Required. Content resource.

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

Returns
TypeDescription
ContentOrBuilder

getDefaultInstanceForType()

public CreateContentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateContentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The validateOnly.

hasContent()

public boolean hasContent()

Required. Content resource.

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

Returns
TypeDescription
boolean

Whether the content field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(CreateContentRequest other)

public CreateContentRequest.Builder mergeFrom(CreateContentRequest other)
Parameter
NameDescription
otherCreateContentRequest
Returns
TypeDescription
CreateContentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateContentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateContentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateContentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueContent
Returns
TypeDescription
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
NameDescription
builderForValueContent.Builder
Returns
TypeDescription
CreateContentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateContentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
CreateContentRequest.Builder

This builder for chaining.