com.google.appengine.v1.TrafficSplitOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Proto library for google-cloud-appengine-admin
/*
* 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/appengine/v1/service.proto
// Protobuf Java Version: 3.25.5
package com.google.appengine.v1;
public interface TrafficSplitOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.appengine.v1.TrafficSplit)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Mechanism used to determine which version a request is sent to.
* The traffic selection algorithm will
* be stable for either type until allocations are changed.
*
*
* .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1;
*
* @return The enum numeric value on the wire for shardBy.
*/
int getShardByValue();
/**
*
*
*
* Mechanism used to determine which version a request is sent to.
* The traffic selection algorithm will
* be stable for either type until allocations are changed.
*
*
* .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1;
*
* @return The shardBy.
*/
com.google.appengine.v1.TrafficSplit.ShardBy getShardBy();
/**
*
*
*
* Mapping from version IDs within the service to fractional
* (0.000, 1] allocations of traffic for that version. Each version can
* be specified only once, but some versions in the service may not
* have any traffic allocation. Services that have traffic allocated
* cannot be deleted until either the service is deleted or
* their traffic allocation is removed. Allocations must sum to 1.
* Up to two decimal place precision is supported for IP-based splits and
* up to three decimal places is supported for cookie-based splits.
*
*
* map<string, double> allocations = 2;
*/
int getAllocationsCount();
/**
*
*
*
* Mapping from version IDs within the service to fractional
* (0.000, 1] allocations of traffic for that version. Each version can
* be specified only once, but some versions in the service may not
* have any traffic allocation. Services that have traffic allocated
* cannot be deleted until either the service is deleted or
* their traffic allocation is removed. Allocations must sum to 1.
* Up to two decimal place precision is supported for IP-based splits and
* up to three decimal places is supported for cookie-based splits.
*
*
* map<string, double> allocations = 2;
*/
boolean containsAllocations(java.lang.String key);
/** Use {@link #getAllocationsMap()} instead. */
@java.lang.Deprecated
java.util.Map getAllocations();
/**
*
*
*
* Mapping from version IDs within the service to fractional
* (0.000, 1] allocations of traffic for that version. Each version can
* be specified only once, but some versions in the service may not
* have any traffic allocation. Services that have traffic allocated
* cannot be deleted until either the service is deleted or
* their traffic allocation is removed. Allocations must sum to 1.
* Up to two decimal place precision is supported for IP-based splits and
* up to three decimal places is supported for cookie-based splits.
*
*
* map<string, double> allocations = 2;
*/
java.util.Map getAllocationsMap();
/**
*
*
*
* Mapping from version IDs within the service to fractional
* (0.000, 1] allocations of traffic for that version. Each version can
* be specified only once, but some versions in the service may not
* have any traffic allocation. Services that have traffic allocated
* cannot be deleted until either the service is deleted or
* their traffic allocation is removed. Allocations must sum to 1.
* Up to two decimal place precision is supported for IP-based splits and
* up to three decimal places is supported for cookie-based splits.
*
*
* map<string, double> allocations = 2;
*/
double getAllocationsOrDefault(java.lang.String key, double defaultValue);
/**
*
*
*
* Mapping from version IDs within the service to fractional
* (0.000, 1] allocations of traffic for that version. Each version can
* be specified only once, but some versions in the service may not
* have any traffic allocation. Services that have traffic allocated
* cannot be deleted until either the service is deleted or
* their traffic allocation is removed. Allocations must sum to 1.
* Up to two decimal place precision is supported for IP-based splits and
* up to three decimal places is supported for cookie-based splits.
*
*
* map<string, double> allocations = 2;
*/
double getAllocationsOrThrow(java.lang.String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy