Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/pubsub/v1/schema.proto
// Protobuf Java Version: 3.25.5
package com.google.pubsub.v1;
/**
*
*
*
* Request for the `ListSchemaRevisions` method.
*
*
* Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest}
*/
public final class ListSchemaRevisionsRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest)
ListSchemaRevisionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListSchemaRevisionsRequest.newBuilder() to construct.
private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListSchemaRevisionsRequest() {
name_ = "";
view_ = 0;
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListSchemaRevisionsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.pubsub.v1.SchemaProto
.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.pubsub.v1.SchemaProto
.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.pubsub.v1.ListSchemaRevisionsRequest.class,
com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Required. The name of the schema to list revisions for.
*
* Required. The name of the schema to list revisions for.
*
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIEW_FIELD_NUMBER = 2;
private int view_ = 0;
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override
public int getViewValue() {
return view_;
}
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @return The view.
*/
@java.lang.Override
public com.google.pubsub.v1.SchemaView getView() {
com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_);
return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result;
}
public static final int PAGE_SIZE_FIELD_NUMBER = 3;
private int pageSize_ = 0;
/**
*
*
*
* The maximum number of revisions to return per page.
*
*
* int32 page_size = 3;
*
* @return The pageSize.
*/
@java.lang.Override
public int getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object pageToken_ = "";
/**
*
*
*
* The page token, received from a previous ListSchemaRevisions call.
* Provide this to retrieve the subsequent page.
*
* Required. The name of the schema to list revisions for.
*
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int view_ = 0;
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override
public int getViewValue() {
return view_;
}
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @param value The enum numeric value on the wire for view to set.
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
view_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @return The view.
*/
@java.lang.Override
public com.google.pubsub.v1.SchemaView getView() {
com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_);
return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result;
}
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @param value The view to set.
* @return This builder for chaining.
*/
public Builder setView(com.google.pubsub.v1.SchemaView value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
view_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The set of Schema fields to return in the response. If not set, returns
* Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
* retrieve all fields.
*
*
* .google.pubsub.v1.SchemaView view = 2;
*
* @return This builder for chaining.
*/
public Builder clearView() {
bitField0_ = (bitField0_ & ~0x00000002);
view_ = 0;
onChanged();
return this;
}
private int pageSize_;
/**
*
*
*
* The maximum number of revisions to return per page.
*
*
* int32 page_size = 3;
*
* @return The pageSize.
*/
@java.lang.Override
public int getPageSize() {
return pageSize_;
}
/**
*
*
*
* The maximum number of revisions to return per page.
*
*
* int32 page_size = 3;
*
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(int value) {
pageSize_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The maximum number of revisions to return per page.
*