Class Rollout

  • All Implemented Interfaces:
    RolloutOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Rollout
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • ROLLOUT_ID_FIELD_NUMBER

        public static final int ROLLOUT_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATED_BY_FIELD_NUMBER

        public static final int CREATED_BY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRAFFIC_PERCENT_STRATEGY_FIELD_NUMBER

        public static final int TRAFFIC_PERCENT_STRATEGY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DELETE_SERVICE_STRATEGY_FIELD_NUMBER

        public static final int DELETE_SERVICE_STRATEGY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SERVICE_NAME_FIELD_NUMBER

        public static final int SERVICE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getRolloutId

        public String 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:
        getRolloutId in interface RolloutOrBuilder
        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:
        getRolloutIdBytes in interface RolloutOrBuilder
        Returns:
        The bytes for rolloutId.
      • hasCreateTime

        public boolean hasCreateTime()
         Creation time of the rollout. Readonly.
         
        .google.protobuf.Timestamp create_time = 2;
        Specified by:
        hasCreateTime in interface RolloutOrBuilder
        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:
        getCreateTime in interface RolloutOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Creation time of the rollout. Readonly.
         
        .google.protobuf.Timestamp create_time = 2;
        Specified by:
        getCreateTimeOrBuilder in interface RolloutOrBuilder
      • getCreatedBy

        public String getCreatedBy()
         The user who created the Rollout. Readonly.
         
        string created_by = 3;
        Specified by:
        getCreatedBy in interface RolloutOrBuilder
        Returns:
        The createdBy.
      • getCreatedByBytes

        public com.google.protobuf.ByteString getCreatedByBytes()
         The user who created the Rollout. Readonly.
         
        string created_by = 3;
        Specified by:
        getCreatedByBytes in interface RolloutOrBuilder
        Returns:
        The bytes for createdBy.
      • 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:
        getStatusValue in interface RolloutOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • getStatus

        public Rollout.RolloutStatus 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:
        getStatus in interface RolloutOrBuilder
        Returns:
        The status.
      • 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:
        hasTrafficPercentStrategy in interface RolloutOrBuilder
        Returns:
        Whether the trafficPercentStrategy field is set.
      • getTrafficPercentStrategy

        public Rollout.TrafficPercentStrategy getTrafficPercentStrategy()
         Google Service Control selects service configurations based on
         traffic percentage.
         
        .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;
        Specified by:
        getTrafficPercentStrategy in interface RolloutOrBuilder
        Returns:
        The trafficPercentStrategy.
      • 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:
        hasDeleteServiceStrategy in interface RolloutOrBuilder
        Returns:
        Whether the deleteServiceStrategy field is set.
      • getDeleteServiceStrategy

        public Rollout.DeleteServiceStrategy getDeleteServiceStrategy()
         The strategy associated with a rollout to delete a `ManagedService`.
         Readonly.
         
        .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;
        Specified by:
        getDeleteServiceStrategy in interface RolloutOrBuilder
        Returns:
        The deleteServiceStrategy.
      • getServiceName

        public String getServiceName()
         The name of the service associated with this Rollout.
         
        string service_name = 8;
        Specified by:
        getServiceName in interface RolloutOrBuilder
        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:
        getServiceNameBytes in interface RolloutOrBuilder
        Returns:
        The bytes for serviceName.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Rollout parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Rollout parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Rollout.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Rollout.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Rollout.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Rollout getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Rollout> parser()
      • getParserForType

        public com.google.protobuf.Parser<Rollout> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Rollout getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder