@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.monitoring.v3.GetUptimeCheckConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.monitoring.v3.GetUptimeCheckConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(com.google.monitoring.v3.GetUptimeCheckConfigRequest other) { if (other == com.google.monitoring.v3.GetUptimeCheckConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * Gets a single uptime check configuration. * * <p>Sample code: * * <pre><code> * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String formattedName = UptimeCheckConfigName.format("[PROJECT]", "[UPTIME_CHECK_CONFIG]"); * UptimeCheckConfig response = uptimeCheckServiceClient.getUptimeCheckConfig(formattedName); * } * </code></pre> * * @param name The uptime check configuration to retrieve. The format is * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig getUptimeCheckConfig(String name) { GetUptimeCheckConfigRequest request = GetUptimeCheckConfigRequest.newBuilder().setName(name).build(); return getUptimeCheckConfig(request); }
/** * Gets a single uptime check configuration. * * <p>Sample code: * * <pre><code> * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String formattedName = UptimeCheckConfigName.format("[PROJECT]", "[UPTIME_CHECK_CONFIG]"); * UptimeCheckConfig response = uptimeCheckServiceClient.getUptimeCheckConfig(formattedName); * } * </code></pre> * * @param name The uptime check configuration to retrieve. The format is * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig getUptimeCheckConfig(String name) { GetUptimeCheckConfigRequest request = GetUptimeCheckConfigRequest.newBuilder().setName(name).build(); return getUptimeCheckConfig(request); }
/** * * * <pre> * The uptime check configuration to retrieve. The format * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * The uptime check configuration to retrieve. The format * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * The uptime check configuration to retrieve. The format * is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public static Builder newBuilder(com.google.monitoring.v3.GetUptimeCheckConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder() { maybeForceBuilderInitialization(); }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.monitoring.v3.GetUptimeCheckConfigRequest) { return mergeFrom((com.google.monitoring.v3.GetUptimeCheckConfigRequest) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@java.lang.Override public com.google.monitoring.v3.GetUptimeCheckConfigRequest buildPartial() { com.google.monitoring.v3.GetUptimeCheckConfigRequest result = new com.google.monitoring.v3.GetUptimeCheckConfigRequest(this); result.name_ = name_; onBuilt(); return result; }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override public com.google.monitoring.v3.GetUptimeCheckConfigRequest build() { com.google.monitoring.v3.GetUptimeCheckConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }