public static final class ValidateSchemaRequest.Builder extends GeneratedMessageV3.Builder<ValidateSchemaRequest.Builder> implements ValidateSchemaRequestOrBuilder
Request for the ValidateSchema
method.
Protobuf type google.pubsub.v1.ValidateSchemaRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ValidateSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ValidateSchemaRequest build()
Returns
buildPartial()
public ValidateSchemaRequest buildPartial()
Returns
clear()
public ValidateSchemaRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ValidateSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ValidateSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public ValidateSchemaRequest.Builder clearParent()
Required. The name of the project in which to validate schemas.
Format is projects/{project-id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearSchema()
public ValidateSchemaRequest.Builder clearSchema()
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public ValidateSchemaRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ValidateSchemaRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The name of the project in which to validate schemas.
Format is projects/{project-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 name of the project in which to validate schemas.
Format is projects/{project-id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getSchema()
public Schema getSchema()
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
Schema | The schema.
|
getSchemaBuilder()
public Schema.Builder getSchemaBuilder()
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getSchemaOrBuilder()
public SchemaOrBuilder getSchemaOrBuilder()
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasSchema()
public boolean hasSchema()
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the schema field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ValidateSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ValidateSchemaRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ValidateSchemaRequest other)
public ValidateSchemaRequest.Builder mergeFrom(ValidateSchemaRequest other)
Parameter
Returns
mergeSchema(Schema value)
public ValidateSchemaRequest.Builder mergeSchema(Schema value)
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ValidateSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ValidateSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public ValidateSchemaRequest.Builder setParent(String value)
Required. The name of the project in which to validate schemas.
Format is projects/{project-id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public ValidateSchemaRequest.Builder setParentBytes(ByteString value)
Required. The name of the project in which to validate schemas.
Format is projects/{project-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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ValidateSchemaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSchema(Schema value)
public ValidateSchemaRequest.Builder setSchema(Schema value)
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setSchema(Schema.Builder builderForValue)
public ValidateSchemaRequest.Builder setSchema(Schema.Builder builderForValue)
Required. The schema object to validate.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ValidateSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides