public final class CreateCollectionRequest extends GeneratedMessageV3 implements CreateCollectionRequestOrBuilder
Request message for CreateCollection.
Protobuf type google.cloud.visionai.v1.CreateCollectionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
COLLECTION_FIELD_NUMBER
public static final int COLLECTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
COLLECTION_ID_FIELD_NUMBER
public static final int COLLECTION_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CreateCollectionRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CreateCollectionRequest.Builder newBuilder()
newBuilder(CreateCollectionRequest prototype)
public static CreateCollectionRequest.Builder newBuilder(CreateCollectionRequest prototype)
public static CreateCollectionRequest parseDelimitedFrom(InputStream input)
public static CreateCollectionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CreateCollectionRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateCollectionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CreateCollectionRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateCollectionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateCollectionRequest parseFrom(CodedInputStream input)
public static CreateCollectionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateCollectionRequest parseFrom(InputStream input)
public static CreateCollectionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CreateCollectionRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateCollectionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CreateCollectionRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCollection()
public Collection getCollection()
Required. The collection resource to be created.
.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Collection |
The collection.
|
getCollectionId()
public String getCollectionId()
Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The collectionId.
|
getCollectionIdBytes()
public ByteString getCollectionIdBytes()
Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for collectionId.
|
getCollectionOrBuilder()
public CollectionOrBuilder getCollectionOrBuilder()
Required. The collection resource to be created.
.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateCollectionRequest getDefaultInstanceForType()
getParent()
public String getParent()
Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
getParserForType()
public Parser<CreateCollectionRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasCollection()
public boolean hasCollection()
Required. The collection resource to be created.
.google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the collection field is set.
|
hasCollectionId()
public boolean hasCollectionId()
Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 characters, and valid characters
are /a-z-/. The first character must be a letter, the last could be
a letter or a number.
optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the collectionId field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CreateCollectionRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateCollectionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CreateCollectionRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides