Class Rollout.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
com.google.api.servicemanagement.v1.Rollout.Builder
- All Implemented Interfaces:
RolloutOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rollout
public static final class Rollout.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
implements RolloutOrBuilder
A rollout resource that defines how service configuration versions are pushed to control plane systems. Typically, you create a new version of the service config, and then create a Rollout to push the service config.Protobuf type
google.api.servicemanagement.v1.Rollout-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The user who created the Rollout.Creation time of the rollout.The strategy associated with a rollout to delete a `ManagedService`.Optional.The name of the service associated with this Rollout.The status of this rollout.Google Service Control selects service configurations based on traffic percentage.The user who created the Rollout.com.google.protobuf.ByteStringThe user who created the Rollout.com.google.protobuf.TimestampCreation time of the rollout.com.google.protobuf.Timestamp.BuilderCreation time of the rollout.com.google.protobuf.TimestampOrBuilderCreation time of the rollout.The strategy associated with a rollout to delete a `ManagedService`.The strategy associated with a rollout to delete a `ManagedService`.The strategy associated with a rollout to delete a `ManagedService`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.The name of the service associated with this Rollout.com.google.protobuf.ByteStringThe name of the service associated with this Rollout.The status of this rollout.intThe status of this rollout.Google Service Control selects service configurations based on traffic percentage.Google Service Control selects service configurations based on traffic percentage.Google Service Control selects service configurations based on traffic percentage.booleanCreation time of the rollout.booleanThe strategy associated with a rollout to delete a `ManagedService`.booleanGoogle Service Control selects service configurations based on traffic percentage.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Creation time of the rollout.The strategy associated with a rollout to delete a `ManagedService`.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Google Service Control selects service configurations based on traffic percentage.setCreatedBy(String value) The user who created the Rollout.setCreatedByBytes(com.google.protobuf.ByteString value) The user who created the Rollout.setCreateTime(com.google.protobuf.Timestamp value) Creation time of the rollout.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Creation time of the rollout.The strategy associated with a rollout to delete a `ManagedService`.setDeleteServiceStrategy(Rollout.DeleteServiceStrategy.Builder builderForValue) The strategy associated with a rollout to delete a `ManagedService`.setRolloutId(String value) Optional.setRolloutIdBytes(com.google.protobuf.ByteString value) Optional.setServiceName(String value) The name of the service associated with this Rollout.setServiceNameBytes(com.google.protobuf.ByteString value) The name of the service associated with this Rollout.setStatus(Rollout.RolloutStatus value) The status of this rollout.setStatusValue(int value) The status of this rollout.Google Service Control selects service configurations based on traffic percentage.setTrafficPercentStrategy(Rollout.TrafficPercentStrategy.Builder builderForValue) Google Service Control selects service configurations based on traffic percentage.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rollout.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rollout.Builder>
-
mergeFrom
public Rollout.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rollout.Builder>- Throws:
IOException
-
getStrategyCase
- Specified by:
getStrategyCasein interfaceRolloutOrBuilder
-
clearStrategy
-
getRolloutId
Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'
string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRolloutIdin interfaceRolloutOrBuilder- Returns:
- The rolloutId.
-
getRolloutIdBytes
public com.google.protobuf.ByteString getRolloutIdBytes()Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'
string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRolloutIdBytesin interfaceRolloutOrBuilder- Returns:
- The bytes for rolloutId.
-
setRolloutId
Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'
string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The rolloutId to set.- Returns:
- This builder for chaining.
-
clearRolloutId
Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'
string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRolloutIdBytes
Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'
string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for rolloutId to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2;- Specified by:
hasCreateTimein interfaceRolloutOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimein interfaceRolloutOrBuilder- Returns:
- The createTime.
-
setCreateTime
Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2; -
setCreateTime
Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2; -
mergeCreateTime
Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2; -
clearCreateTime
Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Creation time of the rollout. Readonly.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimeOrBuilderin interfaceRolloutOrBuilder
-
getCreatedBy
The user who created the Rollout. Readonly.
string created_by = 3;- Specified by:
getCreatedByin interfaceRolloutOrBuilder- Returns:
- The createdBy.
-
getCreatedByBytes
public com.google.protobuf.ByteString getCreatedByBytes()The user who created the Rollout. Readonly.
string created_by = 3;- Specified by:
getCreatedByBytesin interfaceRolloutOrBuilder- Returns:
- The bytes for createdBy.
-
setCreatedBy
The user who created the Rollout. Readonly.
string created_by = 3;- Parameters:
value- The createdBy to set.- Returns:
- This builder for chaining.
-
clearCreatedBy
The user who created the Rollout. Readonly.
string created_by = 3;- Returns:
- This builder for chaining.
-
setCreatedByBytes
The user who created the Rollout. Readonly.
string created_by = 3;- Parameters:
value- The bytes for createdBy to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.
.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;- Specified by:
getStatusValuein interfaceRolloutOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.
.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.
.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;- Specified by:
getStatusin interfaceRolloutOrBuilder- Returns:
- The status.
-
setStatus
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.
.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.
.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;- Returns:
- This builder for chaining.
-
hasTrafficPercentStrategy
public boolean hasTrafficPercentStrategy()Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;- Specified by:
hasTrafficPercentStrategyin interfaceRolloutOrBuilder- Returns:
- Whether the trafficPercentStrategy field is set.
-
getTrafficPercentStrategy
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;- Specified by:
getTrafficPercentStrategyin interfaceRolloutOrBuilder- Returns:
- The trafficPercentStrategy.
-
setTrafficPercentStrategy
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; -
setTrafficPercentStrategy
public Rollout.Builder setTrafficPercentStrategy(Rollout.TrafficPercentStrategy.Builder builderForValue) Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; -
mergeTrafficPercentStrategy
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; -
clearTrafficPercentStrategy
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; -
getTrafficPercentStrategyBuilder
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; -
getTrafficPercentStrategyOrBuilder
Google Service Control selects service configurations based on traffic percentage.
.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;- Specified by:
getTrafficPercentStrategyOrBuilderin interfaceRolloutOrBuilder
-
hasDeleteServiceStrategy
public boolean hasDeleteServiceStrategy()The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;- Specified by:
hasDeleteServiceStrategyin interfaceRolloutOrBuilder- Returns:
- Whether the deleteServiceStrategy field is set.
-
getDeleteServiceStrategy
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;- Specified by:
getDeleteServiceStrategyin interfaceRolloutOrBuilder- Returns:
- The deleteServiceStrategy.
-
setDeleteServiceStrategy
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; -
setDeleteServiceStrategy
public Rollout.Builder setDeleteServiceStrategy(Rollout.DeleteServiceStrategy.Builder builderForValue) The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; -
mergeDeleteServiceStrategy
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; -
clearDeleteServiceStrategy
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; -
getDeleteServiceStrategyBuilder
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; -
getDeleteServiceStrategyOrBuilder
The strategy associated with a rollout to delete a `ManagedService`. Readonly.
.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;- Specified by:
getDeleteServiceStrategyOrBuilderin interfaceRolloutOrBuilder
-
getServiceName
The name of the service associated with this Rollout.
string service_name = 8;- Specified by:
getServiceNamein interfaceRolloutOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()The name of the service associated with this Rollout.
string service_name = 8;- Specified by:
getServiceNameBytesin interfaceRolloutOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
The name of the service associated with this Rollout.
string service_name = 8;- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
The name of the service associated with this Rollout.
string service_name = 8;- Returns:
- This builder for chaining.
-
setServiceNameBytes
The name of the service associated with this Rollout.
string service_name = 8;- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-