Class CreateDocumentSchemaRequest (0.1.0)

public final class CreateDocumentSchemaRequest extends GeneratedMessageV3 implements CreateDocumentSchemaRequestOrBuilder

Request message for DocumentSchemaService.CreateDocumentSchema.

Protobuf type google.cloud.contentwarehouse.v1.CreateDocumentSchemaRequest

Static Fields

DOCUMENT_SCHEMA_FIELD_NUMBER

public static final int DOCUMENT_SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateDocumentSchemaRequest getDefaultInstance()
Returns
TypeDescription
CreateDocumentSchemaRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateDocumentSchemaRequest.Builder newBuilder()
Returns
TypeDescription
CreateDocumentSchemaRequest.Builder

newBuilder(CreateDocumentSchemaRequest prototype)

public static CreateDocumentSchemaRequest.Builder newBuilder(CreateDocumentSchemaRequest prototype)
Parameter
NameDescription
prototypeCreateDocumentSchemaRequest
Returns
TypeDescription
CreateDocumentSchemaRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateDocumentSchemaRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateDocumentSchemaRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateDocumentSchemaRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateDocumentSchemaRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateDocumentSchemaRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateDocumentSchemaRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateDocumentSchemaRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDocumentSchemaRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateDocumentSchemaRequest> parser()
Returns
TypeDescription
Parser<CreateDocumentSchemaRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateDocumentSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDocumentSchemaRequest

getDocumentSchema()

public DocumentSchema getDocumentSchema()

Required. The document schema to create.

.google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DocumentSchema

The documentSchema.

getDocumentSchemaOrBuilder()

public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()

Required. The document schema to create.

.google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DocumentSchemaOrBuilder

getParent()

public String getParent()

Required. The parent name.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent name.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateDocumentSchemaRequest> getParserForType()
Returns
TypeDescription
Parser<CreateDocumentSchemaRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDocumentSchema()

public boolean hasDocumentSchema()

Required. The document schema to create.

.google.cloud.contentwarehouse.v1.DocumentSchema document_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the documentSchema field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateDocumentSchemaRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateDocumentSchemaRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateDocumentSchemaRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateDocumentSchemaRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateDocumentSchemaRequest.Builder toBuilder()
Returns
TypeDescription
CreateDocumentSchemaRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException