1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/vmmigration/v1/vmmigration.proto 18 19 package com.google.cloud.vmmigration.v1; 20 21 public interface ReplicationCycleOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ReplicationCycle) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The identifier of the ReplicationCycle. 31 * </pre> 32 * 33 * <code>string name = 13;</code> 34 * 35 * @return The name. 36 */ getName()37 java.lang.String getName(); 38 /** 39 * 40 * 41 * <pre> 42 * The identifier of the ReplicationCycle. 43 * </pre> 44 * 45 * <code>string name = 13;</code> 46 * 47 * @return The bytes for name. 48 */ getNameBytes()49 com.google.protobuf.ByteString getNameBytes(); 50 51 /** 52 * 53 * 54 * <pre> 55 * The cycle's ordinal number. 56 * </pre> 57 * 58 * <code>int32 cycle_number = 10;</code> 59 * 60 * @return The cycleNumber. 61 */ getCycleNumber()62 int getCycleNumber(); 63 64 /** 65 * 66 * 67 * <pre> 68 * The time the replication cycle has started. 69 * </pre> 70 * 71 * <code>.google.protobuf.Timestamp start_time = 1;</code> 72 * 73 * @return Whether the startTime field is set. 74 */ hasStartTime()75 boolean hasStartTime(); 76 /** 77 * 78 * 79 * <pre> 80 * The time the replication cycle has started. 81 * </pre> 82 * 83 * <code>.google.protobuf.Timestamp start_time = 1;</code> 84 * 85 * @return The startTime. 86 */ getStartTime()87 com.google.protobuf.Timestamp getStartTime(); 88 /** 89 * 90 * 91 * <pre> 92 * The time the replication cycle has started. 93 * </pre> 94 * 95 * <code>.google.protobuf.Timestamp start_time = 1;</code> 96 */ getStartTimeOrBuilder()97 com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); 98 99 /** 100 * 101 * 102 * <pre> 103 * The time the replication cycle has ended. 104 * </pre> 105 * 106 * <code>.google.protobuf.Timestamp end_time = 6;</code> 107 * 108 * @return Whether the endTime field is set. 109 */ hasEndTime()110 boolean hasEndTime(); 111 /** 112 * 113 * 114 * <pre> 115 * The time the replication cycle has ended. 116 * </pre> 117 * 118 * <code>.google.protobuf.Timestamp end_time = 6;</code> 119 * 120 * @return The endTime. 121 */ getEndTime()122 com.google.protobuf.Timestamp getEndTime(); 123 /** 124 * 125 * 126 * <pre> 127 * The time the replication cycle has ended. 128 * </pre> 129 * 130 * <code>.google.protobuf.Timestamp end_time = 6;</code> 131 */ getEndTimeOrBuilder()132 com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); 133 134 /** 135 * 136 * 137 * <pre> 138 * The accumulated duration the replication cycle was paused. 139 * </pre> 140 * 141 * <code>.google.protobuf.Duration total_pause_duration = 7;</code> 142 * 143 * @return Whether the totalPauseDuration field is set. 144 */ hasTotalPauseDuration()145 boolean hasTotalPauseDuration(); 146 /** 147 * 148 * 149 * <pre> 150 * The accumulated duration the replication cycle was paused. 151 * </pre> 152 * 153 * <code>.google.protobuf.Duration total_pause_duration = 7;</code> 154 * 155 * @return The totalPauseDuration. 156 */ getTotalPauseDuration()157 com.google.protobuf.Duration getTotalPauseDuration(); 158 /** 159 * 160 * 161 * <pre> 162 * The accumulated duration the replication cycle was paused. 163 * </pre> 164 * 165 * <code>.google.protobuf.Duration total_pause_duration = 7;</code> 166 */ getTotalPauseDurationOrBuilder()167 com.google.protobuf.DurationOrBuilder getTotalPauseDurationOrBuilder(); 168 169 /** 170 * 171 * 172 * <pre> 173 * The current progress in percentage of this cycle. 174 * Was replaced by 'steps' field, which breaks down the cycle progression more 175 * accurately. 176 * </pre> 177 * 178 * <code>int32 progress_percent = 5 [deprecated = true];</code> 179 * 180 * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See 181 * google/cloud/vmmigration/v1/vmmigration.proto;l=715 182 * @return The progressPercent. 183 */ 184 @java.lang.Deprecated getProgressPercent()185 int getProgressPercent(); 186 187 /** 188 * 189 * 190 * <pre> 191 * The cycle's steps list representing its progress. 192 * </pre> 193 * 194 * <code>repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;</code> 195 */ getStepsList()196 java.util.List<com.google.cloud.vmmigration.v1.CycleStep> getStepsList(); 197 /** 198 * 199 * 200 * <pre> 201 * The cycle's steps list representing its progress. 202 * </pre> 203 * 204 * <code>repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;</code> 205 */ getSteps(int index)206 com.google.cloud.vmmigration.v1.CycleStep getSteps(int index); 207 /** 208 * 209 * 210 * <pre> 211 * The cycle's steps list representing its progress. 212 * </pre> 213 * 214 * <code>repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;</code> 215 */ getStepsCount()216 int getStepsCount(); 217 /** 218 * 219 * 220 * <pre> 221 * The cycle's steps list representing its progress. 222 * </pre> 223 * 224 * <code>repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;</code> 225 */ 226 java.util.List<? extends com.google.cloud.vmmigration.v1.CycleStepOrBuilder> getStepsOrBuilderList()227 getStepsOrBuilderList(); 228 /** 229 * 230 * 231 * <pre> 232 * The cycle's steps list representing its progress. 233 * </pre> 234 * 235 * <code>repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;</code> 236 */ getStepsOrBuilder(int index)237 com.google.cloud.vmmigration.v1.CycleStepOrBuilder getStepsOrBuilder(int index); 238 239 /** 240 * 241 * 242 * <pre> 243 * State of the ReplicationCycle. 244 * </pre> 245 * 246 * <code>.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;</code> 247 * 248 * @return The enum numeric value on the wire for state. 249 */ getStateValue()250 int getStateValue(); 251 /** 252 * 253 * 254 * <pre> 255 * State of the ReplicationCycle. 256 * </pre> 257 * 258 * <code>.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;</code> 259 * 260 * @return The state. 261 */ getState()262 com.google.cloud.vmmigration.v1.ReplicationCycle.State getState(); 263 264 /** 265 * 266 * 267 * <pre> 268 * Provides details on the state of the cycle in case of an error. 269 * </pre> 270 * 271 * <code>.google.rpc.Status error = 12;</code> 272 * 273 * @return Whether the error field is set. 274 */ hasError()275 boolean hasError(); 276 /** 277 * 278 * 279 * <pre> 280 * Provides details on the state of the cycle in case of an error. 281 * </pre> 282 * 283 * <code>.google.rpc.Status error = 12;</code> 284 * 285 * @return The error. 286 */ getError()287 com.google.rpc.Status getError(); 288 /** 289 * 290 * 291 * <pre> 292 * Provides details on the state of the cycle in case of an error. 293 * </pre> 294 * 295 * <code>.google.rpc.Status error = 12;</code> 296 */ getErrorOrBuilder()297 com.google.rpc.StatusOrBuilder getErrorOrBuilder(); 298 } 299