public static ByteBuf newGetSchema(long requestId, String topic, Optional<SchemaVersion> version) { PulsarApi.CommandGetSchema.Builder schema = PulsarApi.CommandGetSchema.newBuilder() .setRequestId(requestId); schema.setTopic(topic); if (version.isPresent()) { schema.setSchemaVersion(ByteString.copyFrom(version.get().bytes())); } ByteBuf res = serializeWithSize(BaseCommand.newBuilder() .setType(Type.GET_SCHEMA) .setGetSchema(schema.build())); schema.recycle(); return res; }
public static ByteBuf newGetSchema(long requestId, String topic, Optional<SchemaVersion> version) { PulsarApi.CommandGetSchema.Builder schema = PulsarApi.CommandGetSchema.newBuilder() .setRequestId(requestId); schema.setTopic(topic); if (version.isPresent()) { schema.setSchemaVersion(ByteString.copyFrom(version.get().bytes())); } ByteBuf res = serializeWithSize(BaseCommand.newBuilder() .setType(Type.GET_SCHEMA) .setGetSchema(schema.build())); schema.recycle(); return res; }
public Builder setGetSchema( org.apache.pulsar.common.api.proto.PulsarApi.CommandGetSchema.Builder builderForValue) { getSchema_ = builderForValue.build(); bitField1_ |= 0x00000002; return this; } public Builder mergeGetSchema(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetSchema value) {
public Builder setGetSchema( org.apache.pulsar.common.api.proto.PulsarApi.CommandGetSchema.Builder builderForValue) { getSchema_ = builderForValue.build(); bitField1_ |= 0x00000002; return this; } public Builder mergeGetSchema(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetSchema value) {