Class ValidateSchemaRequest.Builder (1.129.1)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValidateSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

build()

public ValidateSchemaRequest build()
Returns
Type Description
ValidateSchemaRequest

buildPartial()

public ValidateSchemaRequest buildPartial()
Returns
Type Description
ValidateSchemaRequest

clear()

public ValidateSchemaRequest.Builder clear()
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ValidateSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ValidateSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ValidateSchemaRequest.Builder

clone()

public ValidateSchemaRequest.Builder clone()
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

getDefaultInstanceForType()

public ValidateSchemaRequest getDefaultInstanceForType()
Returns
Type Description
ValidateSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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
Type Description
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
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
Type Description
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Required. The schema object to validate.

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

Returns
Type Description
SchemaOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ValidateSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ValidateSchemaRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

mergeFrom(ValidateSchemaRequest other)

public ValidateSchemaRequest.Builder mergeFrom(ValidateSchemaRequest other)
Parameter
Name Description
other ValidateSchemaRequest
Returns
Type Description
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
Name Description
value Schema
Returns
Type Description
ValidateSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValidateSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ValidateSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Schema
Returns
Type Description
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
Name Description
builderForValue Schema.Builder
Returns
Type Description
ValidateSchemaRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ValidateSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValidateSchemaRequest.Builder
Overrides