public static final class CreateSchemaRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder> implements CreateSchemaRequestOrBuilder
Request for the CreateSchema method.Protobuf type
google.pubsub.v1.CreateSchemaRequest
Modifier and Type | Method and Description |
---|---|
CreateSchemaRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateSchemaRequest |
build() |
CreateSchemaRequest |
buildPartial() |
CreateSchemaRequest.Builder |
clear() |
CreateSchemaRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateSchemaRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateSchemaRequest.Builder |
clearParent()
Required.
|
CreateSchemaRequest.Builder |
clearSchema()
Required.
|
CreateSchemaRequest.Builder |
clearSchemaId()
The ID to use for the schema, which will become the final component of
the schema's resource name.
|
CreateSchemaRequest.Builder |
clone() |
CreateSchemaRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
Schema |
getSchema()
Required.
|
Schema.Builder |
getSchemaBuilder()
Required.
|
String |
getSchemaId()
The ID to use for the schema, which will become the final component of
the schema's resource name.
|
com.google.protobuf.ByteString |
getSchemaIdBytes()
The ID to use for the schema, which will become the final component of
the schema's resource name.
|
SchemaOrBuilder |
getSchemaOrBuilder()
Required.
|
boolean |
hasSchema()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateSchemaRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateSchemaRequest.Builder |
mergeFrom(CreateSchemaRequest other) |
CreateSchemaRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateSchemaRequest.Builder |
mergeSchema(Schema value)
Required.
|
CreateSchemaRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateSchemaRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateSchemaRequest.Builder |
setParent(String value)
Required.
|
CreateSchemaRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
CreateSchemaRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreateSchemaRequest.Builder |
setSchema(Schema.Builder builderForValue)
Required.
|
CreateSchemaRequest.Builder |
setSchema(Schema value)
Required.
|
CreateSchemaRequest.Builder |
setSchemaId(String value)
The ID to use for the schema, which will become the final component of
the schema's resource name.
|
CreateSchemaRequest.Builder |
setSchemaIdBytes(com.google.protobuf.ByteString value)
The ID to use for the schema, which will become the final component of
the schema's resource name.
|
CreateSchemaRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CreateSchemaRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CreateSchemaRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CreateSchemaRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder mergeFrom(CreateSchemaRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public CreateSchemaRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateSchemaRequest.Builder>
IOException
public String getParent()
Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CreateSchemaRequestOrBuilder
public com.google.protobuf.ByteString getParentBytes()
Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CreateSchemaRequestOrBuilder
public CreateSchemaRequest.Builder setParent(String value)
Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public CreateSchemaRequest.Builder clearParent()
Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateSchemaRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public boolean hasSchema()
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
hasSchema
in interface CreateSchemaRequestOrBuilder
public Schema getSchema()
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
getSchema
in interface CreateSchemaRequestOrBuilder
public CreateSchemaRequest.Builder setSchema(Schema value)
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSchemaRequest.Builder setSchema(Schema.Builder builderForValue)
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSchemaRequest.Builder mergeSchema(Schema value)
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSchemaRequest.Builder clearSchema()
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
public Schema.Builder getSchemaBuilder()
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
public SchemaOrBuilder getSchemaOrBuilder()
Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
getSchemaOrBuilder
in interface CreateSchemaRequestOrBuilder
public String getSchemaId()
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.
string schema_id = 3;
getSchemaId
in interface CreateSchemaRequestOrBuilder
public com.google.protobuf.ByteString getSchemaIdBytes()
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.
string schema_id = 3;
getSchemaIdBytes
in interface CreateSchemaRequestOrBuilder
public CreateSchemaRequest.Builder setSchemaId(String value)
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.
string schema_id = 3;
value
- The schemaId to set.public CreateSchemaRequest.Builder clearSchemaId()
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.
string schema_id = 3;
public CreateSchemaRequest.Builder setSchemaIdBytes(com.google.protobuf.ByteString value)
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.
string schema_id = 3;
value
- The bytes for schemaId to set.public final CreateSchemaRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
public final CreateSchemaRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSchemaRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.