Class ValidateSchemaRequest.Builder (1.117.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ValidateSchemaRequest build()
Returns
TypeDescription
ValidateSchemaRequest

buildPartial()

public ValidateSchemaRequest buildPartial()
Returns
TypeDescription
ValidateSchemaRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearSchema()

public ValidateSchemaRequest.Builder clearSchema()

Required. The schema object to validate.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ValidateSchemaRequest.Builder

clone()

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

getDefaultInstanceForType()

public ValidateSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
ValidateSchemaRequest

getDescriptorForType()

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

The bytes for parent.

getSchema()

public Schema getSchema()

Required. The schema object to validate.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Required. The schema object to validate.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SchemaOrBuilder

hasSchema()

public boolean hasSchema()

Required. The schema object to validate.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ValidateSchemaRequest other)

public ValidateSchemaRequest.Builder mergeFrom(ValidateSchemaRequest other)
Parameter
NameDescription
otherValidateSchemaRequest
Returns
TypeDescription
ValidateSchemaRequest.Builder

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
NameDescription
valueSchema
Returns
TypeDescription
ValidateSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValidateSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ValidateSchemaRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

Returns
TypeDescription
ValidateSchemaRequest.Builder

This builder for chaining.

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

The bytes for parent to set.

Returns
TypeDescription
ValidateSchemaRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ValidateSchemaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ValidateSchemaRequest.Builder
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
NameDescription
valueSchema
Returns
TypeDescription
ValidateSchemaRequest.Builder

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
NameDescription
builderForValueSchema.Builder
Returns
TypeDescription
ValidateSchemaRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ValidateSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ValidateSchemaRequest.Builder
Overrides