All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.appengine.v1.EndpointsApiService Maven / Gradle / Ivy

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2020 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/appengine/v1/version.proto

package com.google.appengine.v1;

/**
 *
 *
 * 
 * [Cloud Endpoints](https://cloud.google.com/endpoints) configuration.
 * The Endpoints API Service provides tooling for serving Open API and gRPC
 * endpoints via an NGINX proxy. Only valid for App Engine Flexible environment
 * deployments.
 * The fields here refer to the name and configuration ID of a "service"
 * resource in the [Service Management API](https://cloud.google.com/service-management/overview).
 * 
* * Protobuf type {@code google.appengine.v1.EndpointsApiService} */ public final class EndpointsApiService extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.EndpointsApiService) EndpointsApiServiceOrBuilder { private static final long serialVersionUID = 0L; // Use EndpointsApiService.newBuilder() to construct. private EndpointsApiService(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndpointsApiService() { name_ = ""; configId_ = ""; rolloutStrategy_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EndpointsApiService(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EndpointsApiService( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); configId_ = s; break; } case 24: { int rawValue = input.readEnum(); rolloutStrategy_ = rawValue; break; } case 32: { disableTraceSampling_ = input.readBool(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.VersionProto .internal_static_google_appengine_v1_EndpointsApiService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.VersionProto .internal_static_google_appengine_v1_EndpointsApiService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.EndpointsApiService.class, com.google.appengine.v1.EndpointsApiService.Builder.class); } /** * * *
   * Available rollout strategies.
   * 
* * Protobuf enum {@code google.appengine.v1.EndpointsApiService.RolloutStrategy} */ public enum RolloutStrategy implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified. Defaults to `FIXED`.
     * 
* * UNSPECIFIED_ROLLOUT_STRATEGY = 0; */ UNSPECIFIED_ROLLOUT_STRATEGY(0), /** * * *
     * Endpoints service configuration ID will be fixed to the configuration ID
     * specified by `config_id`.
     * 
* * FIXED = 1; */ FIXED(1), /** * * *
     * Endpoints service configuration ID will be updated with each rollout.
     * 
* * MANAGED = 2; */ MANAGED(2), UNRECOGNIZED(-1), ; /** * * *
     * Not specified. Defaults to `FIXED`.
     * 
* * UNSPECIFIED_ROLLOUT_STRATEGY = 0; */ public static final int UNSPECIFIED_ROLLOUT_STRATEGY_VALUE = 0; /** * * *
     * Endpoints service configuration ID will be fixed to the configuration ID
     * specified by `config_id`.
     * 
* * FIXED = 1; */ public static final int FIXED_VALUE = 1; /** * * *
     * Endpoints service configuration ID will be updated with each rollout.
     * 
* * MANAGED = 2; */ public static final int MANAGED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RolloutStrategy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RolloutStrategy forNumber(int value) { switch (value) { case 0: return UNSPECIFIED_ROLLOUT_STRATEGY; case 1: return FIXED; case 2: return MANAGED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RolloutStrategy findValueByNumber(int number) { return RolloutStrategy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.appengine.v1.EndpointsApiService.getDescriptor().getEnumTypes().get(0); } private static final RolloutStrategy[] VALUES = values(); public static RolloutStrategy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RolloutStrategy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.appengine.v1.EndpointsApiService.RolloutStrategy) } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
   * Endpoints service name which is the name of the "service" resource in the
   * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Endpoints service name which is the name of the "service" resource in the
   * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
   * 
* * string name = 1; * * @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 CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object configId_; /** * * *
   * Endpoints service configuration ID as specified by the Service Management
   * API. For example "2016-09-19r1".
   * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
   * This means that Endpoints starts up with a particular configuration ID.
   * When a new configuration is rolled out, Endpoints must be given the new
   * configuration ID. The `config_id` field is used to give the configuration
   * ID and is required in this case.
   * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
   * When using this, Endpoints fetches the latest configuration and does not
   * need the configuration ID. In this case, `config_id` must be omitted.
   * 
* * string config_id = 2; * * @return The configId. */ @java.lang.Override public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } } /** * * *
   * Endpoints service configuration ID as specified by the Service Management
   * API. For example "2016-09-19r1".
   * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
   * This means that Endpoints starts up with a particular configuration ID.
   * When a new configuration is rolled out, Endpoints must be given the new
   * configuration ID. The `config_id` field is used to give the configuration
   * ID and is required in this case.
   * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
   * When using this, Endpoints fetches the latest configuration and does not
   * need the configuration ID. In this case, `config_id` must be omitted.
   * 
* * string config_id = 2; * * @return The bytes for configId. */ @java.lang.Override public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLLOUT_STRATEGY_FIELD_NUMBER = 3; private int rolloutStrategy_; /** * * *
   * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
   * `MANAGED`, `config_id` must be omitted.
   * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @return The enum numeric value on the wire for rolloutStrategy. */ @java.lang.Override public int getRolloutStrategyValue() { return rolloutStrategy_; } /** * * *
   * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
   * `MANAGED`, `config_id` must be omitted.
   * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @return The rolloutStrategy. */ @java.lang.Override public com.google.appengine.v1.EndpointsApiService.RolloutStrategy getRolloutStrategy() { @SuppressWarnings("deprecation") com.google.appengine.v1.EndpointsApiService.RolloutStrategy result = com.google.appengine.v1.EndpointsApiService.RolloutStrategy.valueOf(rolloutStrategy_); return result == null ? com.google.appengine.v1.EndpointsApiService.RolloutStrategy.UNRECOGNIZED : result; } public static final int DISABLE_TRACE_SAMPLING_FIELD_NUMBER = 4; private boolean disableTraceSampling_; /** * * *
   * Enable or disable trace sampling. By default, this is set to false for
   * enabled.
   * 
* * bool disable_trace_sampling = 4; * * @return The disableTraceSampling. */ @java.lang.Override public boolean getDisableTraceSampling() { return disableTraceSampling_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getConfigIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configId_); } if (rolloutStrategy_ != com.google.appengine.v1.EndpointsApiService.RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY .getNumber()) { output.writeEnum(3, rolloutStrategy_); } if (disableTraceSampling_ != false) { output.writeBool(4, disableTraceSampling_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getConfigIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } if (rolloutStrategy_ != com.google.appengine.v1.EndpointsApiService.RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, rolloutStrategy_); } if (disableTraceSampling_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableTraceSampling_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.EndpointsApiService)) { return super.equals(obj); } com.google.appengine.v1.EndpointsApiService other = (com.google.appengine.v1.EndpointsApiService) obj; if (!getName().equals(other.getName())) return false; if (!getConfigId().equals(other.getConfigId())) return false; if (rolloutStrategy_ != other.rolloutStrategy_) return false; if (getDisableTraceSampling() != other.getDisableTraceSampling()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CONFIG_ID_FIELD_NUMBER; hash = (53 * hash) + getConfigId().hashCode(); hash = (37 * hash) + ROLLOUT_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + rolloutStrategy_; hash = (37 * hash) + DISABLE_TRACE_SAMPLING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTraceSampling()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.EndpointsApiService parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.EndpointsApiService parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.EndpointsApiService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.EndpointsApiService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.EndpointsApiService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.EndpointsApiService parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.EndpointsApiService parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.EndpointsApiService parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.EndpointsApiService parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.EndpointsApiService parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.EndpointsApiService parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.EndpointsApiService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.EndpointsApiService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * [Cloud Endpoints](https://cloud.google.com/endpoints) configuration.
   * The Endpoints API Service provides tooling for serving Open API and gRPC
   * endpoints via an NGINX proxy. Only valid for App Engine Flexible environment
   * deployments.
   * The fields here refer to the name and configuration ID of a "service"
   * resource in the [Service Management API](https://cloud.google.com/service-management/overview).
   * 
* * Protobuf type {@code google.appengine.v1.EndpointsApiService} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.EndpointsApiService) com.google.appengine.v1.EndpointsApiServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.VersionProto .internal_static_google_appengine_v1_EndpointsApiService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.VersionProto .internal_static_google_appengine_v1_EndpointsApiService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.EndpointsApiService.class, com.google.appengine.v1.EndpointsApiService.Builder.class); } // Construct using com.google.appengine.v1.EndpointsApiService.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; configId_ = ""; rolloutStrategy_ = 0; disableTraceSampling_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.VersionProto .internal_static_google_appengine_v1_EndpointsApiService_descriptor; } @java.lang.Override public com.google.appengine.v1.EndpointsApiService getDefaultInstanceForType() { return com.google.appengine.v1.EndpointsApiService.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.EndpointsApiService build() { com.google.appengine.v1.EndpointsApiService result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.EndpointsApiService buildPartial() { com.google.appengine.v1.EndpointsApiService result = new com.google.appengine.v1.EndpointsApiService(this); result.name_ = name_; result.configId_ = configId_; result.rolloutStrategy_ = rolloutStrategy_; result.disableTraceSampling_ = disableTraceSampling_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.EndpointsApiService) { return mergeFrom((com.google.appengine.v1.EndpointsApiService) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.EndpointsApiService other) { if (other == com.google.appengine.v1.EndpointsApiService.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getConfigId().isEmpty()) { configId_ = other.configId_; onChanged(); } if (other.rolloutStrategy_ != 0) { setRolloutStrategyValue(other.getRolloutStrategyValue()); } if (other.getDisableTraceSampling() != false) { setDisableTraceSampling(other.getDisableTraceSampling()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.appengine.v1.EndpointsApiService parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.EndpointsApiService) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * * *
     * Endpoints service name which is the name of the "service" resource in the
     * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Endpoints service name which is the name of the "service" resource in the
     * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof 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; } } /** * * *
     * Endpoints service name which is the name of the "service" resource in the
     * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * * *
     * Endpoints service name which is the name of the "service" resource in the
     * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
     * Endpoints service name which is the name of the "service" resource in the
     * Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
     * 
* * string name = 1; * * @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; onChanged(); return this; } private java.lang.Object configId_ = ""; /** * * *
     * Endpoints service configuration ID as specified by the Service Management
     * API. For example "2016-09-19r1".
     * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
     * This means that Endpoints starts up with a particular configuration ID.
     * When a new configuration is rolled out, Endpoints must be given the new
     * configuration ID. The `config_id` field is used to give the configuration
     * ID and is required in this case.
     * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
     * When using this, Endpoints fetches the latest configuration and does not
     * need the configuration ID. In this case, `config_id` must be omitted.
     * 
* * string config_id = 2; * * @return The configId. */ public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Endpoints service configuration ID as specified by the Service Management
     * API. For example "2016-09-19r1".
     * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
     * This means that Endpoints starts up with a particular configuration ID.
     * When a new configuration is rolled out, Endpoints must be given the new
     * configuration ID. The `config_id` field is used to give the configuration
     * ID and is required in this case.
     * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
     * When using this, Endpoints fetches the latest configuration and does not
     * need the configuration ID. In this case, `config_id` must be omitted.
     * 
* * string config_id = 2; * * @return The bytes for configId. */ public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Endpoints service configuration ID as specified by the Service Management
     * API. For example "2016-09-19r1".
     * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
     * This means that Endpoints starts up with a particular configuration ID.
     * When a new configuration is rolled out, Endpoints must be given the new
     * configuration ID. The `config_id` field is used to give the configuration
     * ID and is required in this case.
     * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
     * When using this, Endpoints fetches the latest configuration and does not
     * need the configuration ID. In this case, `config_id` must be omitted.
     * 
* * string config_id = 2; * * @param value The configId to set. * @return This builder for chaining. */ public Builder setConfigId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } configId_ = value; onChanged(); return this; } /** * * *
     * Endpoints service configuration ID as specified by the Service Management
     * API. For example "2016-09-19r1".
     * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
     * This means that Endpoints starts up with a particular configuration ID.
     * When a new configuration is rolled out, Endpoints must be given the new
     * configuration ID. The `config_id` field is used to give the configuration
     * ID and is required in this case.
     * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
     * When using this, Endpoints fetches the latest configuration and does not
     * need the configuration ID. In this case, `config_id` must be omitted.
     * 
* * string config_id = 2; * * @return This builder for chaining. */ public Builder clearConfigId() { configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } /** * * *
     * Endpoints service configuration ID as specified by the Service Management
     * API. For example "2016-09-19r1".
     * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`.
     * This means that Endpoints starts up with a particular configuration ID.
     * When a new configuration is rolled out, Endpoints must be given the new
     * configuration ID. The `config_id` field is used to give the configuration
     * ID and is required in this case.
     * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`.
     * When using this, Endpoints fetches the latest configuration and does not
     * need the configuration ID. In this case, `config_id` must be omitted.
     * 
* * string config_id = 2; * * @param value The bytes for configId to set. * @return This builder for chaining. */ public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); configId_ = value; onChanged(); return this; } private int rolloutStrategy_ = 0; /** * * *
     * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
     * `MANAGED`, `config_id` must be omitted.
     * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @return The enum numeric value on the wire for rolloutStrategy. */ @java.lang.Override public int getRolloutStrategyValue() { return rolloutStrategy_; } /** * * *
     * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
     * `MANAGED`, `config_id` must be omitted.
     * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @param value The enum numeric value on the wire for rolloutStrategy to set. * @return This builder for chaining. */ public Builder setRolloutStrategyValue(int value) { rolloutStrategy_ = value; onChanged(); return this; } /** * * *
     * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
     * `MANAGED`, `config_id` must be omitted.
     * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @return The rolloutStrategy. */ @java.lang.Override public com.google.appengine.v1.EndpointsApiService.RolloutStrategy getRolloutStrategy() { @SuppressWarnings("deprecation") com.google.appengine.v1.EndpointsApiService.RolloutStrategy result = com.google.appengine.v1.EndpointsApiService.RolloutStrategy.valueOf(rolloutStrategy_); return result == null ? com.google.appengine.v1.EndpointsApiService.RolloutStrategy.UNRECOGNIZED : result; } /** * * *
     * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
     * `MANAGED`, `config_id` must be omitted.
     * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @param value The rolloutStrategy to set. * @return This builder for chaining. */ public Builder setRolloutStrategy( com.google.appengine.v1.EndpointsApiService.RolloutStrategy value) { if (value == null) { throw new NullPointerException(); } rolloutStrategy_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If
     * `MANAGED`, `config_id` must be omitted.
     * 
* * .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; * * @return This builder for chaining. */ public Builder clearRolloutStrategy() { rolloutStrategy_ = 0; onChanged(); return this; } private boolean disableTraceSampling_; /** * * *
     * Enable or disable trace sampling. By default, this is set to false for
     * enabled.
     * 
* * bool disable_trace_sampling = 4; * * @return The disableTraceSampling. */ @java.lang.Override public boolean getDisableTraceSampling() { return disableTraceSampling_; } /** * * *
     * Enable or disable trace sampling. By default, this is set to false for
     * enabled.
     * 
* * bool disable_trace_sampling = 4; * * @param value The disableTraceSampling to set. * @return This builder for chaining. */ public Builder setDisableTraceSampling(boolean value) { disableTraceSampling_ = value; onChanged(); return this; } /** * * *
     * Enable or disable trace sampling. By default, this is set to false for
     * enabled.
     * 
* * bool disable_trace_sampling = 4; * * @return This builder for chaining. */ public Builder clearDisableTraceSampling() { disableTraceSampling_ = false; onChanged(); return this; } @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.appengine.v1.EndpointsApiService) } // @@protoc_insertion_point(class_scope:google.appengine.v1.EndpointsApiService) private static final com.google.appengine.v1.EndpointsApiService DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.EndpointsApiService(); } public static com.google.appengine.v1.EndpointsApiService getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EndpointsApiService parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndpointsApiService(input, extensionRegistry); } }; 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.appengine.v1.EndpointsApiService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy