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/pubsub.proto
// Protobuf Java Version: 3.25.5
package com.google.pubsub.v1;
/**
*
*
*
* Request for the ModifyPushConfig method.
*
*
* Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest}
*/
public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest)
ModifyPushConfigRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModifyPushConfigRequest.newBuilder() to construct.
private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ModifyPushConfigRequest() {
subscription_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ModifyPushConfigRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.pubsub.v1.ModifyPushConfigRequest.class,
com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class);
}
private int bitField0_;
public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object subscription_ = "";
/**
*
*
*
* Required. The name of the subscription.
* Format is `projects/{project}/subscriptions/{sub}`.
*
* Required. The name of the subscription.
* Format is `projects/{project}/subscriptions/{sub}`.
*
*
*
* string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for subscription.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSubscriptionBytes() {
java.lang.Object ref = subscription_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subscription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PUSH_CONFIG_FIELD_NUMBER = 2;
private com.google.pubsub.v1.PushConfig pushConfig_;
/**
*
*
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
*
* .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the pushConfig field is set.
*/
@java.lang.Override
public boolean hasPushConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The name of the subscription.
* Format is `projects/{project}/subscriptions/{sub}`.
*
*
*
* string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for subscription to set.
* @return This builder for chaining.
*/
public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subscription_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.pubsub.v1.PushConfig pushConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.pubsub.v1.PushConfig,
com.google.pubsub.v1.PushConfig.Builder,
com.google.pubsub.v1.PushConfigOrBuilder>
pushConfigBuilder_;
/**
*
*
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
*
* .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the pushConfig field is set.
*/
public boolean hasPushConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
* Required. The push configuration for future deliveries.
*
* An empty `pushConfig` indicates that the Pub/Sub system should
* stop pushing messages from the given subscription and allow
* messages to be pulled and acknowledged - effectively pausing
* the subscription if `Pull` or `StreamingPull` is not called.
*
*
* .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.pubsub.v1.PushConfig,
com.google.pubsub.v1.PushConfig.Builder,
com.google.pubsub.v1.PushConfigOrBuilder>
getPushConfigFieldBuilder() {
if (pushConfigBuilder_ == null) {
pushConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.pubsub.v1.PushConfig,
com.google.pubsub.v1.PushConfig.Builder,
com.google.pubsub.v1.PushConfigOrBuilder>(
getPushConfig(), getParentForChildren(), isClean());
pushConfig_ = null;
}
return pushConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest)
}
// @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest)
private static final com.google.pubsub.v1.ModifyPushConfigRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyPushConfigRequest();
}
public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModifyPushConfigRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}