diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ConfigServiceGrpc.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ConfigServiceGrpc.java deleted file mode 100644 index b6f92f650d64..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ConfigServiceGrpc.java +++ /dev/null @@ -1,856 +0,0 @@ -package com.google.logging.v1; - -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; - -@javax.annotation.Generated("by gRPC proto compiler") -public class ConfigServiceGrpc { - - private ConfigServiceGrpc() {} - - public static final String SERVICE_NAME = "google.logging.v1.ConfigService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_LIST_LOG_SINKS = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "ListLogSinks"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListLogSinksRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListLogSinksResponse.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_GET_LOG_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "GetLogSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.GetLogSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_CREATE_LOG_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "CreateLogSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.CreateLogSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_UPDATE_LOG_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "UpdateLogSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.UpdateLogSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_DELETE_LOG_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "DeleteLogSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.DeleteLogSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.protobuf.Empty.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_LIST_LOG_SERVICE_SINKS = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "ListLogServiceSinks"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListLogServiceSinksRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListLogServiceSinksResponse.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_GET_LOG_SERVICE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "GetLogServiceSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.GetLogServiceSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_CREATE_LOG_SERVICE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "CreateLogServiceSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.CreateLogServiceSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_UPDATE_LOG_SERVICE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "UpdateLogServiceSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.UpdateLogServiceSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_DELETE_LOG_SERVICE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "DeleteLogServiceSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.DeleteLogServiceSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.protobuf.Empty.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_LIST_SINKS = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "ListSinks"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListSinksRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.ListSinksResponse.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_GET_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "GetSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.GetSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_CREATE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "CreateSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.CreateSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_UPDATE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "UpdateSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.UpdateSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.LogSink.getDefaultInstance())); - @io.grpc.ExperimentalApi - public static final io.grpc.MethodDescriptor METHOD_DELETE_SINK = - io.grpc.MethodDescriptor.create( - io.grpc.MethodDescriptor.MethodType.UNARY, - generateFullMethodName( - "google.logging.v1.ConfigService", "DeleteSink"), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.logging.v1.DeleteSinkRequest.getDefaultInstance()), - io.grpc.protobuf.ProtoUtils.marshaller(com.google.protobuf.Empty.getDefaultInstance())); - - public static ConfigServiceStub newStub(io.grpc.Channel channel) { - return new ConfigServiceStub(channel); - } - - public static ConfigServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new ConfigServiceBlockingStub(channel); - } - - public static ConfigServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new ConfigServiceFutureStub(channel); - } - - public static interface ConfigService { - - public void listLogSinks(com.google.logging.v1.ListLogSinksRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void getLogSink(com.google.logging.v1.GetLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void createLogSink(com.google.logging.v1.CreateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void updateLogSink(com.google.logging.v1.UpdateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void deleteLogSink(com.google.logging.v1.DeleteLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void listLogServiceSinks(com.google.logging.v1.ListLogServiceSinksRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void getLogServiceSink(com.google.logging.v1.GetLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void createLogServiceSink(com.google.logging.v1.CreateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void updateLogServiceSink(com.google.logging.v1.UpdateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void deleteLogServiceSink(com.google.logging.v1.DeleteLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void listSinks(com.google.logging.v1.ListSinksRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void getSink(com.google.logging.v1.GetSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void createSink(com.google.logging.v1.CreateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void updateSink(com.google.logging.v1.UpdateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - - public void deleteSink(com.google.logging.v1.DeleteSinkRequest request, - io.grpc.stub.StreamObserver responseObserver); - } - - public static interface ConfigServiceBlockingClient { - - public com.google.logging.v1.ListLogSinksResponse listLogSinks(com.google.logging.v1.ListLogSinksRequest request); - - public com.google.logging.v1.LogSink getLogSink(com.google.logging.v1.GetLogSinkRequest request); - - public com.google.logging.v1.LogSink createLogSink(com.google.logging.v1.CreateLogSinkRequest request); - - public com.google.logging.v1.LogSink updateLogSink(com.google.logging.v1.UpdateLogSinkRequest request); - - public com.google.protobuf.Empty deleteLogSink(com.google.logging.v1.DeleteLogSinkRequest request); - - public com.google.logging.v1.ListLogServiceSinksResponse listLogServiceSinks(com.google.logging.v1.ListLogServiceSinksRequest request); - - public com.google.logging.v1.LogSink getLogServiceSink(com.google.logging.v1.GetLogServiceSinkRequest request); - - public com.google.logging.v1.LogSink createLogServiceSink(com.google.logging.v1.CreateLogServiceSinkRequest request); - - public com.google.logging.v1.LogSink updateLogServiceSink(com.google.logging.v1.UpdateLogServiceSinkRequest request); - - public com.google.protobuf.Empty deleteLogServiceSink(com.google.logging.v1.DeleteLogServiceSinkRequest request); - - public com.google.logging.v1.ListSinksResponse listSinks(com.google.logging.v1.ListSinksRequest request); - - public com.google.logging.v1.LogSink getSink(com.google.logging.v1.GetSinkRequest request); - - public com.google.logging.v1.LogSink createSink(com.google.logging.v1.CreateSinkRequest request); - - public com.google.logging.v1.LogSink updateSink(com.google.logging.v1.UpdateSinkRequest request); - - public com.google.protobuf.Empty deleteSink(com.google.logging.v1.DeleteSinkRequest request); - } - - public static interface ConfigServiceFutureClient { - - public com.google.common.util.concurrent.ListenableFuture listLogSinks( - com.google.logging.v1.ListLogSinksRequest request); - - public com.google.common.util.concurrent.ListenableFuture getLogSink( - com.google.logging.v1.GetLogSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture createLogSink( - com.google.logging.v1.CreateLogSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture updateLogSink( - com.google.logging.v1.UpdateLogSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture deleteLogSink( - com.google.logging.v1.DeleteLogSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture listLogServiceSinks( - com.google.logging.v1.ListLogServiceSinksRequest request); - - public com.google.common.util.concurrent.ListenableFuture getLogServiceSink( - com.google.logging.v1.GetLogServiceSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture createLogServiceSink( - com.google.logging.v1.CreateLogServiceSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture updateLogServiceSink( - com.google.logging.v1.UpdateLogServiceSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture deleteLogServiceSink( - com.google.logging.v1.DeleteLogServiceSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture listSinks( - com.google.logging.v1.ListSinksRequest request); - - public com.google.common.util.concurrent.ListenableFuture getSink( - com.google.logging.v1.GetSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture createSink( - com.google.logging.v1.CreateSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture updateSink( - com.google.logging.v1.UpdateSinkRequest request); - - public com.google.common.util.concurrent.ListenableFuture deleteSink( - com.google.logging.v1.DeleteSinkRequest request); - } - - public static class ConfigServiceStub extends io.grpc.stub.AbstractStub - implements ConfigService { - private ConfigServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ConfigServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ConfigServiceStub(channel, callOptions); - } - - @java.lang.Override - public void listLogSinks(com.google.logging.v1.ListLogSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SINKS, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void getLogSink(com.google.logging.v1.GetLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void createLogSink(com.google.logging.v1.CreateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void updateLogSink(com.google.logging.v1.UpdateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void deleteLogSink(com.google.logging.v1.DeleteLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void listLogServiceSinks(com.google.logging.v1.ListLogServiceSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SERVICE_SINKS, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void getLogServiceSink(com.google.logging.v1.GetLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SERVICE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void createLogServiceSink(com.google.logging.v1.CreateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SERVICE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void updateLogServiceSink(com.google.logging.v1.UpdateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SERVICE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void deleteLogServiceSink(com.google.logging.v1.DeleteLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SERVICE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void listSinks(com.google.logging.v1.ListSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_LIST_SINKS, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void getSink(com.google.logging.v1.GetSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_GET_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void createSink(com.google.logging.v1.CreateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_CREATE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void updateSink(com.google.logging.v1.UpdateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_UPDATE_SINK, getCallOptions()), request, responseObserver); - } - - @java.lang.Override - public void deleteSink(com.google.logging.v1.DeleteSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(METHOD_DELETE_SINK, getCallOptions()), request, responseObserver); - } - } - - public static class ConfigServiceBlockingStub extends io.grpc.stub.AbstractStub - implements ConfigServiceBlockingClient { - private ConfigServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ConfigServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ConfigServiceBlockingStub(channel, callOptions); - } - - @java.lang.Override - public com.google.logging.v1.ListLogSinksResponse listLogSinks(com.google.logging.v1.ListLogSinksRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink getLogSink(com.google.logging.v1.GetLogSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink createLogSink(com.google.logging.v1.CreateLogSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink updateLogSink(com.google.logging.v1.UpdateLogSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.protobuf.Empty deleteLogSink(com.google.logging.v1.DeleteLogSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.ListLogServiceSinksResponse listLogServiceSinks(com.google.logging.v1.ListLogServiceSinksRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SERVICE_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink getLogServiceSink(com.google.logging.v1.GetLogServiceSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink createLogServiceSink(com.google.logging.v1.CreateLogServiceSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink updateLogServiceSink(com.google.logging.v1.UpdateLogServiceSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.protobuf.Empty deleteLogServiceSink(com.google.logging.v1.DeleteLogServiceSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.ListSinksResponse listSinks(com.google.logging.v1.ListSinksRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_LIST_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink getSink(com.google.logging.v1.GetSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_GET_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink createSink(com.google.logging.v1.CreateSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_CREATE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.logging.v1.LogSink updateSink(com.google.logging.v1.UpdateSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_UPDATE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.protobuf.Empty deleteSink(com.google.logging.v1.DeleteSinkRequest request) { - return blockingUnaryCall( - getChannel().newCall(METHOD_DELETE_SINK, getCallOptions()), request); - } - } - - public static class ConfigServiceFutureStub extends io.grpc.stub.AbstractStub - implements ConfigServiceFutureClient { - private ConfigServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ConfigServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new ConfigServiceFutureStub(channel, callOptions); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture listLogSinks( - com.google.logging.v1.ListLogSinksRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture getLogSink( - com.google.logging.v1.GetLogSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture createLogSink( - com.google.logging.v1.CreateLogSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture updateLogSink( - com.google.logging.v1.UpdateLogSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture deleteLogSink( - com.google.logging.v1.DeleteLogSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture listLogServiceSinks( - com.google.logging.v1.ListLogServiceSinksRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_LIST_LOG_SERVICE_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture getLogServiceSink( - com.google.logging.v1.GetLogServiceSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_GET_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture createLogServiceSink( - com.google.logging.v1.CreateLogServiceSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_CREATE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture updateLogServiceSink( - com.google.logging.v1.UpdateLogServiceSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_UPDATE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture deleteLogServiceSink( - com.google.logging.v1.DeleteLogServiceSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_DELETE_LOG_SERVICE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture listSinks( - com.google.logging.v1.ListSinksRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_LIST_SINKS, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture getSink( - com.google.logging.v1.GetSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_GET_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture createSink( - com.google.logging.v1.CreateSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_CREATE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture updateSink( - com.google.logging.v1.UpdateSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_UPDATE_SINK, getCallOptions()), request); - } - - @java.lang.Override - public com.google.common.util.concurrent.ListenableFuture deleteSink( - com.google.logging.v1.DeleteSinkRequest request) { - return futureUnaryCall( - getChannel().newCall(METHOD_DELETE_SINK, getCallOptions()), request); - } - } - - public static io.grpc.ServerServiceDefinition bindService( - final ConfigService serviceImpl) { - return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) - .addMethod( - METHOD_LIST_LOG_SINKS, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.ListLogSinksRequest, - com.google.logging.v1.ListLogSinksResponse>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.ListLogSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.listLogSinks(request, responseObserver); - } - })) - .addMethod( - METHOD_GET_LOG_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.GetLogSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.GetLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.getLogSink(request, responseObserver); - } - })) - .addMethod( - METHOD_CREATE_LOG_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.CreateLogSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.CreateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.createLogSink(request, responseObserver); - } - })) - .addMethod( - METHOD_UPDATE_LOG_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.UpdateLogSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.UpdateLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.updateLogSink(request, responseObserver); - } - })) - .addMethod( - METHOD_DELETE_LOG_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.DeleteLogSinkRequest, - com.google.protobuf.Empty>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.DeleteLogSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.deleteLogSink(request, responseObserver); - } - })) - .addMethod( - METHOD_LIST_LOG_SERVICE_SINKS, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.ListLogServiceSinksRequest, - com.google.logging.v1.ListLogServiceSinksResponse>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.ListLogServiceSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.listLogServiceSinks(request, responseObserver); - } - })) - .addMethod( - METHOD_GET_LOG_SERVICE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.GetLogServiceSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.GetLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.getLogServiceSink(request, responseObserver); - } - })) - .addMethod( - METHOD_CREATE_LOG_SERVICE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.CreateLogServiceSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.CreateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.createLogServiceSink(request, responseObserver); - } - })) - .addMethod( - METHOD_UPDATE_LOG_SERVICE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.UpdateLogServiceSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.UpdateLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.updateLogServiceSink(request, responseObserver); - } - })) - .addMethod( - METHOD_DELETE_LOG_SERVICE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.DeleteLogServiceSinkRequest, - com.google.protobuf.Empty>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.DeleteLogServiceSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.deleteLogServiceSink(request, responseObserver); - } - })) - .addMethod( - METHOD_LIST_SINKS, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.ListSinksRequest, - com.google.logging.v1.ListSinksResponse>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.ListSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.listSinks(request, responseObserver); - } - })) - .addMethod( - METHOD_GET_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.GetSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.GetSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.getSink(request, responseObserver); - } - })) - .addMethod( - METHOD_CREATE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.CreateSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.CreateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.createSink(request, responseObserver); - } - })) - .addMethod( - METHOD_UPDATE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.UpdateSinkRequest, - com.google.logging.v1.LogSink>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.UpdateSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.updateSink(request, responseObserver); - } - })) - .addMethod( - METHOD_DELETE_SINK, - asyncUnaryCall( - new io.grpc.stub.ServerCalls.UnaryMethod< - com.google.logging.v1.DeleteSinkRequest, - com.google.protobuf.Empty>() { - @java.lang.Override - public void invoke( - com.google.logging.v1.DeleteSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - serviceImpl.deleteSink(request, responseObserver); - } - })).build(); - } -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequest.java deleted file mode 100644 index 1d991e265234..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequest.java +++ /dev/null @@ -1,696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.CreateLogServiceSinkRequest} - * - *
- * The parameters to `CreateLogServiceSink`.
- * 
- */ -public final class CreateLogServiceSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.CreateLogServiceSinkRequest) - CreateLogServiceSinkRequestOrBuilder { - // Use CreateLogServiceSinkRequest.newBuilder() to construct. - private CreateLogServiceSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CreateLogServiceSinkRequest() { - serviceName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CreateLogServiceSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - serviceName_ = s; - break; - } - case 18: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateLogServiceSinkRequest.class, com.google.logging.v1.CreateLogServiceSinkRequest.Builder.class); - } - - public static final int SERVICE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceName_; - /** - * optional string service_name = 1; - * - *
-   * The resource name of the log service to which the sink is bound.
-   * 
- */ - public java.lang.String getServiceName() { - java.lang.Object ref = serviceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceName_ = s; - return s; - } - } - /** - * optional string service_name = 1; - * - *
-   * The resource name of the log service to which the sink is bound.
-   * 
- */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - java.lang.Object ref = serviceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 2; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getServiceNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceName_); - } - if (sink_ != null) { - output.writeMessage(2, getSink()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getServiceNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceName_); - } - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.CreateLogServiceSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.CreateLogServiceSinkRequest} - * - *
-   * The parameters to `CreateLogServiceSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.CreateLogServiceSinkRequest) - com.google.logging.v1.CreateLogServiceSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateLogServiceSinkRequest.class, com.google.logging.v1.CreateLogServiceSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.CreateLogServiceSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - serviceName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor; - } - - public com.google.logging.v1.CreateLogServiceSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.CreateLogServiceSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.CreateLogServiceSinkRequest build() { - com.google.logging.v1.CreateLogServiceSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.CreateLogServiceSinkRequest buildPartial() { - com.google.logging.v1.CreateLogServiceSinkRequest result = new com.google.logging.v1.CreateLogServiceSinkRequest(this); - result.serviceName_ = serviceName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.CreateLogServiceSinkRequest) { - return mergeFrom((com.google.logging.v1.CreateLogServiceSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.CreateLogServiceSinkRequest other) { - if (other == com.google.logging.v1.CreateLogServiceSinkRequest.getDefaultInstance()) return this; - if (!other.getServiceName().isEmpty()) { - serviceName_ = other.serviceName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.CreateLogServiceSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.CreateLogServiceSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serviceName_ = ""; - /** - * optional string service_name = 1; - * - *
-     * The resource name of the log service to which the sink is bound.
-     * 
- */ - public java.lang.String getServiceName() { - java.lang.Object ref = serviceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string service_name = 1; - * - *
-     * The resource name of the log service to which the sink is bound.
-     * 
- */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - java.lang.Object ref = serviceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string service_name = 1; - * - *
-     * The resource name of the log service to which the sink is bound.
-     * 
- */ - public Builder setServiceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceName_ = value; - onChanged(); - return this; - } - /** - * optional string service_name = 1; - * - *
-     * The resource name of the log service to which the sink is bound.
-     * 
- */ - public Builder clearServiceName() { - - serviceName_ = getDefaultInstance().getServiceName(); - onChanged(); - return this; - } - /** - * optional string service_name = 1; - * - *
-     * The resource name of the log service to which the sink is bound.
-     * 
- */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log service sink.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.CreateLogServiceSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.CreateLogServiceSinkRequest) - private static final com.google.logging.v1.CreateLogServiceSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.CreateLogServiceSinkRequest(); - } - - public static com.google.logging.v1.CreateLogServiceSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public CreateLogServiceSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CreateLogServiceSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.CreateLogServiceSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequestOrBuilder.java deleted file mode 100644 index 3141bb1371cf..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogServiceSinkRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface CreateLogServiceSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.CreateLogServiceSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string service_name = 1; - * - *
-   * The resource name of the log service to which the sink is bound.
-   * 
- */ - java.lang.String getServiceName(); - /** - * optional string service_name = 1; - * - *
-   * The resource name of the log service to which the sink is bound.
-   * 
- */ - com.google.protobuf.ByteString - getServiceNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log service sink.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequest.java deleted file mode 100644 index 362ec629f359..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequest.java +++ /dev/null @@ -1,696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.CreateLogSinkRequest} - * - *
- * The parameters to `CreateLogSink`.
- * 
- */ -public final class CreateLogSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.CreateLogSinkRequest) - CreateLogSinkRequestOrBuilder { - // Use CreateLogSinkRequest.newBuilder() to construct. - private CreateLogSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CreateLogSinkRequest() { - logName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CreateLogSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - logName_ = s; - break; - } - case 18: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateLogSinkRequest.class, com.google.logging.v1.CreateLogSinkRequest.Builder.class); - } - - public static final int LOG_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object logName_; - /** - * optional string log_name = 1; - * - *
-   * The resource name of the log to which to the sink is bound.
-   * 
- */ - public java.lang.String getLogName() { - java.lang.Object ref = logName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logName_ = s; - return s; - } - } - /** - * optional string log_name = 1; - * - *
-   * The resource name of the log to which to the sink is bound.
-   * 
- */ - public com.google.protobuf.ByteString - getLogNameBytes() { - java.lang.Object ref = logName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 2; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getLogNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, logName_); - } - if (sink_ != null) { - output.writeMessage(2, getSink()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getLogNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, logName_); - } - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateLogSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.CreateLogSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.CreateLogSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.CreateLogSinkRequest} - * - *
-   * The parameters to `CreateLogSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.CreateLogSinkRequest) - com.google.logging.v1.CreateLogSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateLogSinkRequest.class, com.google.logging.v1.CreateLogSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.CreateLogSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - logName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateLogSinkRequest_descriptor; - } - - public com.google.logging.v1.CreateLogSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.CreateLogSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.CreateLogSinkRequest build() { - com.google.logging.v1.CreateLogSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.CreateLogSinkRequest buildPartial() { - com.google.logging.v1.CreateLogSinkRequest result = new com.google.logging.v1.CreateLogSinkRequest(this); - result.logName_ = logName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.CreateLogSinkRequest) { - return mergeFrom((com.google.logging.v1.CreateLogSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.CreateLogSinkRequest other) { - if (other == com.google.logging.v1.CreateLogSinkRequest.getDefaultInstance()) return this; - if (!other.getLogName().isEmpty()) { - logName_ = other.logName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.CreateLogSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.CreateLogSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object logName_ = ""; - /** - * optional string log_name = 1; - * - *
-     * The resource name of the log to which to the sink is bound.
-     * 
- */ - public java.lang.String getLogName() { - java.lang.Object ref = logName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string log_name = 1; - * - *
-     * The resource name of the log to which to the sink is bound.
-     * 
- */ - public com.google.protobuf.ByteString - getLogNameBytes() { - java.lang.Object ref = logName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string log_name = 1; - * - *
-     * The resource name of the log to which to the sink is bound.
-     * 
- */ - public Builder setLogName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - logName_ = value; - onChanged(); - return this; - } - /** - * optional string log_name = 1; - * - *
-     * The resource name of the log to which to the sink is bound.
-     * 
- */ - public Builder clearLogName() { - - logName_ = getDefaultInstance().getLogName(); - onChanged(); - return this; - } - /** - * optional string log_name = 1; - * - *
-     * The resource name of the log to which to the sink is bound.
-     * 
- */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - logName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new log sink.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.CreateLogSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.CreateLogSinkRequest) - private static final com.google.logging.v1.CreateLogSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.CreateLogSinkRequest(); - } - - public static com.google.logging.v1.CreateLogSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public CreateLogSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CreateLogSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.CreateLogSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequestOrBuilder.java deleted file mode 100644 index f72b6d7958e3..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateLogSinkRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface CreateLogSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.CreateLogSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string log_name = 1; - * - *
-   * The resource name of the log to which to the sink is bound.
-   * 
- */ - java.lang.String getLogName(); - /** - * optional string log_name = 1; - * - *
-   * The resource name of the log to which to the sink is bound.
-   * 
- */ - com.google.protobuf.ByteString - getLogNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new log sink.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequest.java deleted file mode 100644 index d09ea03d0d0d..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequest.java +++ /dev/null @@ -1,696 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.CreateSinkRequest} - * - *
- * The parameters to `CreateSink`.
- * 
- */ -public final class CreateSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.CreateSinkRequest) - CreateSinkRequestOrBuilder { - // Use CreateSinkRequest.newBuilder() to construct. - private CreateSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CreateSinkRequest() { - projectName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CreateSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - projectName_ = s; - break; - } - case 18: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateSinkRequest.class, com.google.logging.v1.CreateSinkRequest.Builder.class); - } - - public static final int PROJECT_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object projectName_; - /** - * optional string project_name = 1; - * - *
-   * The resource name of the project to which the sink is bound.
-   * 
- */ - public java.lang.String getProjectName() { - java.lang.Object ref = projectName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectName_ = s; - return s; - } - } - /** - * optional string project_name = 1; - * - *
-   * The resource name of the project to which the sink is bound.
-   * 
- */ - public com.google.protobuf.ByteString - getProjectNameBytes() { - java.lang.Object ref = projectName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 2; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, projectName_); - } - if (sink_ != null) { - output.writeMessage(2, getSink()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectName_); - } - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.CreateSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.CreateSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.CreateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.CreateSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.CreateSinkRequest} - * - *
-   * The parameters to `CreateSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.CreateSinkRequest) - com.google.logging.v1.CreateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.CreateSinkRequest.class, com.google.logging.v1.CreateSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.CreateSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - projectName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_CreateSinkRequest_descriptor; - } - - public com.google.logging.v1.CreateSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.CreateSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.CreateSinkRequest build() { - com.google.logging.v1.CreateSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.CreateSinkRequest buildPartial() { - com.google.logging.v1.CreateSinkRequest result = new com.google.logging.v1.CreateSinkRequest(this); - result.projectName_ = projectName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.CreateSinkRequest) { - return mergeFrom((com.google.logging.v1.CreateSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.CreateSinkRequest other) { - if (other == com.google.logging.v1.CreateSinkRequest.getDefaultInstance()) return this; - if (!other.getProjectName().isEmpty()) { - projectName_ = other.projectName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.CreateSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.CreateSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectName_ = ""; - /** - * optional string project_name = 1; - * - *
-     * The resource name of the project to which the sink is bound.
-     * 
- */ - public java.lang.String getProjectName() { - java.lang.Object ref = projectName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string project_name = 1; - * - *
-     * The resource name of the project to which the sink is bound.
-     * 
- */ - public com.google.protobuf.ByteString - getProjectNameBytes() { - java.lang.Object ref = projectName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string project_name = 1; - * - *
-     * The resource name of the project to which the sink is bound.
-     * 
- */ - public Builder setProjectName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectName_ = value; - onChanged(); - return this; - } - /** - * optional string project_name = 1; - * - *
-     * The resource name of the project to which the sink is bound.
-     * 
- */ - public Builder clearProjectName() { - - projectName_ = getDefaultInstance().getProjectName(); - onChanged(); - return this; - } - /** - * optional string project_name = 1; - * - *
-     * The resource name of the project to which the sink is bound.
-     * 
- */ - public Builder setProjectNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new project sink.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.CreateSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.CreateSinkRequest) - private static final com.google.logging.v1.CreateSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.CreateSinkRequest(); - } - - public static com.google.logging.v1.CreateSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public CreateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CreateSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.CreateSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequestOrBuilder.java deleted file mode 100644 index 93c4bb169d0f..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/CreateSinkRequestOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface CreateSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.CreateSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string project_name = 1; - * - *
-   * The resource name of the project to which the sink is bound.
-   * 
- */ - java.lang.String getProjectName(); - /** - * optional string project_name = 1; - * - *
-   * The resource name of the project to which the sink is bound.
-   * 
- */ - com.google.protobuf.ByteString - getProjectNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new project sink.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequest.java deleted file mode 100644 index 13dbf0ea27a8..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.DeleteLogServiceSinkRequest} - * - *
- * The parameters to `DeleteLogServiceSink`.
- * 
- */ -public final class DeleteLogServiceSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.DeleteLogServiceSinkRequest) - DeleteLogServiceSinkRequestOrBuilder { - // Use DeleteLogServiceSinkRequest.newBuilder() to construct. - private DeleteLogServiceSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DeleteLogServiceSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private DeleteLogServiceSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteLogServiceSinkRequest.class, com.google.logging.v1.DeleteLogServiceSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to delete.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to delete.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.DeleteLogServiceSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.DeleteLogServiceSinkRequest} - * - *
-   * The parameters to `DeleteLogServiceSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.DeleteLogServiceSinkRequest) - com.google.logging.v1.DeleteLogServiceSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteLogServiceSinkRequest.class, com.google.logging.v1.DeleteLogServiceSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.DeleteLogServiceSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor; - } - - public com.google.logging.v1.DeleteLogServiceSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.DeleteLogServiceSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.DeleteLogServiceSinkRequest build() { - com.google.logging.v1.DeleteLogServiceSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.DeleteLogServiceSinkRequest buildPartial() { - com.google.logging.v1.DeleteLogServiceSinkRequest result = new com.google.logging.v1.DeleteLogServiceSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.DeleteLogServiceSinkRequest) { - return mergeFrom((com.google.logging.v1.DeleteLogServiceSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.DeleteLogServiceSinkRequest other) { - if (other == com.google.logging.v1.DeleteLogServiceSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.DeleteLogServiceSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.DeleteLogServiceSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to delete.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to delete.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to delete.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to delete.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to delete.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.DeleteLogServiceSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.DeleteLogServiceSinkRequest) - private static final com.google.logging.v1.DeleteLogServiceSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.DeleteLogServiceSinkRequest(); - } - - public static com.google.logging.v1.DeleteLogServiceSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public DeleteLogServiceSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new DeleteLogServiceSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.DeleteLogServiceSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequestOrBuilder.java deleted file mode 100644 index 19822dd7663a..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogServiceSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface DeleteLogServiceSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.DeleteLogServiceSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to delete.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to delete.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequest.java deleted file mode 100644 index 756f24795aa0..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.DeleteLogSinkRequest} - * - *
- * The parameters to `DeleteLogSink`.
- * 
- */ -public final class DeleteLogSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.DeleteLogSinkRequest) - DeleteLogSinkRequestOrBuilder { - // Use DeleteLogSinkRequest.newBuilder() to construct. - private DeleteLogSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DeleteLogSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private DeleteLogSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteLogSinkRequest.class, com.google.logging.v1.DeleteLogSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log sink to delete.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log sink to delete.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.DeleteLogSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.DeleteLogSinkRequest} - * - *
-   * The parameters to `DeleteLogSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.DeleteLogSinkRequest) - com.google.logging.v1.DeleteLogSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteLogSinkRequest.class, com.google.logging.v1.DeleteLogSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.DeleteLogSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor; - } - - public com.google.logging.v1.DeleteLogSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.DeleteLogSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.DeleteLogSinkRequest build() { - com.google.logging.v1.DeleteLogSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.DeleteLogSinkRequest buildPartial() { - com.google.logging.v1.DeleteLogSinkRequest result = new com.google.logging.v1.DeleteLogSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.DeleteLogSinkRequest) { - return mergeFrom((com.google.logging.v1.DeleteLogSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.DeleteLogSinkRequest other) { - if (other == com.google.logging.v1.DeleteLogSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.DeleteLogSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.DeleteLogSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log sink to delete.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log sink to delete.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log sink to delete.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log sink to delete.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log sink to delete.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.DeleteLogSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.DeleteLogSinkRequest) - private static final com.google.logging.v1.DeleteLogSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.DeleteLogSinkRequest(); - } - - public static com.google.logging.v1.DeleteLogSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public DeleteLogSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new DeleteLogSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.DeleteLogSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequestOrBuilder.java deleted file mode 100644 index 59b188ecb6cb..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteLogSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface DeleteLogSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.DeleteLogSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log sink to delete.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log sink to delete.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequest.java deleted file mode 100644 index 631978b078f3..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.DeleteSinkRequest} - * - *
- * The parameters to `DeleteSink`.
- * 
- */ -public final class DeleteSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.DeleteSinkRequest) - DeleteSinkRequestOrBuilder { - // Use DeleteSinkRequest.newBuilder() to construct. - private DeleteSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DeleteSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private DeleteSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteSinkRequest.class, com.google.logging.v1.DeleteSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to delete.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to delete.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.DeleteSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.DeleteSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.DeleteSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.DeleteSinkRequest} - * - *
-   * The parameters to `DeleteSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.DeleteSinkRequest) - com.google.logging.v1.DeleteSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.DeleteSinkRequest.class, com.google.logging.v1.DeleteSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.DeleteSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_DeleteSinkRequest_descriptor; - } - - public com.google.logging.v1.DeleteSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.DeleteSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.DeleteSinkRequest build() { - com.google.logging.v1.DeleteSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.DeleteSinkRequest buildPartial() { - com.google.logging.v1.DeleteSinkRequest result = new com.google.logging.v1.DeleteSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.DeleteSinkRequest) { - return mergeFrom((com.google.logging.v1.DeleteSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.DeleteSinkRequest other) { - if (other == com.google.logging.v1.DeleteSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.DeleteSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.DeleteSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to delete.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to delete.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to delete.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to delete.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to delete.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.DeleteSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.DeleteSinkRequest) - private static final com.google.logging.v1.DeleteSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.DeleteSinkRequest(); - } - - public static com.google.logging.v1.DeleteSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public DeleteSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new DeleteSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.DeleteSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequestOrBuilder.java deleted file mode 100644 index 2ffb84cd2012..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/DeleteSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface DeleteSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.DeleteSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to delete.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to delete.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequest.java deleted file mode 100644 index 3a477d5a3c84..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.GetLogServiceSinkRequest} - * - *
- * The parameters to `GetLogServiceSink`.
- * 
- */ -public final class GetLogServiceSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.GetLogServiceSinkRequest) - GetLogServiceSinkRequestOrBuilder { - // Use GetLogServiceSinkRequest.newBuilder() to construct. - private GetLogServiceSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private GetLogServiceSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private GetLogServiceSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetLogServiceSinkRequest.class, com.google.logging.v1.GetLogServiceSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to return.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to return.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.GetLogServiceSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.GetLogServiceSinkRequest} - * - *
-   * The parameters to `GetLogServiceSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.GetLogServiceSinkRequest) - com.google.logging.v1.GetLogServiceSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetLogServiceSinkRequest.class, com.google.logging.v1.GetLogServiceSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.GetLogServiceSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor; - } - - public com.google.logging.v1.GetLogServiceSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.GetLogServiceSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.GetLogServiceSinkRequest build() { - com.google.logging.v1.GetLogServiceSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.GetLogServiceSinkRequest buildPartial() { - com.google.logging.v1.GetLogServiceSinkRequest result = new com.google.logging.v1.GetLogServiceSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.GetLogServiceSinkRequest) { - return mergeFrom((com.google.logging.v1.GetLogServiceSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.GetLogServiceSinkRequest other) { - if (other == com.google.logging.v1.GetLogServiceSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.GetLogServiceSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.GetLogServiceSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to return.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to return.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to return.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to return.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to return.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.GetLogServiceSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.GetLogServiceSinkRequest) - private static final com.google.logging.v1.GetLogServiceSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.GetLogServiceSinkRequest(); - } - - public static com.google.logging.v1.GetLogServiceSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GetLogServiceSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new GetLogServiceSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.GetLogServiceSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequestOrBuilder.java deleted file mode 100644 index e134c17282f4..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogServiceSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface GetLogServiceSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.GetLogServiceSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to return.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to return.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequest.java deleted file mode 100644 index 8e43dd724224..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.GetLogSinkRequest} - * - *
- * The parameters to `GetLogSink`.
- * 
- */ -public final class GetLogSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.GetLogSinkRequest) - GetLogSinkRequestOrBuilder { - // Use GetLogSinkRequest.newBuilder() to construct. - private GetLogSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private GetLogSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private GetLogSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetLogSinkRequest.class, com.google.logging.v1.GetLogSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 4; - * - *
-   * The resource name of the log sink to return.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 4; - * - *
-   * The resource name of the log sink to return.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetLogSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.GetLogSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.GetLogSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.GetLogSinkRequest} - * - *
-   * The parameters to `GetLogSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.GetLogSinkRequest) - com.google.logging.v1.GetLogSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetLogSinkRequest.class, com.google.logging.v1.GetLogSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.GetLogSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetLogSinkRequest_descriptor; - } - - public com.google.logging.v1.GetLogSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.GetLogSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.GetLogSinkRequest build() { - com.google.logging.v1.GetLogSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.GetLogSinkRequest buildPartial() { - com.google.logging.v1.GetLogSinkRequest result = new com.google.logging.v1.GetLogSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.GetLogSinkRequest) { - return mergeFrom((com.google.logging.v1.GetLogSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.GetLogSinkRequest other) { - if (other == com.google.logging.v1.GetLogSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.GetLogSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.GetLogSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 4; - * - *
-     * The resource name of the log sink to return.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 4; - * - *
-     * The resource name of the log sink to return.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 4; - * - *
-     * The resource name of the log sink to return.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 4; - * - *
-     * The resource name of the log sink to return.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 4; - * - *
-     * The resource name of the log sink to return.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.GetLogSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.GetLogSinkRequest) - private static final com.google.logging.v1.GetLogSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.GetLogSinkRequest(); - } - - public static com.google.logging.v1.GetLogSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GetLogSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new GetLogSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.GetLogSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequestOrBuilder.java deleted file mode 100644 index 44a6d05ef33e..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetLogSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface GetLogSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.GetLogSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 4; - * - *
-   * The resource name of the log sink to return.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 4; - * - *
-   * The resource name of the log sink to return.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequest.java deleted file mode 100644 index 8d19f6322f2f..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.GetSinkRequest} - * - *
- * The parameters to `GetSink`.
- * 
- */ -public final class GetSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.GetSinkRequest) - GetSinkRequestOrBuilder { - // Use GetSinkRequest.newBuilder() to construct. - private GetSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private GetSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private GetSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetSinkRequest.class, com.google.logging.v1.GetSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to return.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to return.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.GetSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.GetSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.GetSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.GetSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.GetSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.GetSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.GetSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.GetSinkRequest} - * - *
-   * The parameters to `GetSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.GetSinkRequest) - com.google.logging.v1.GetSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.GetSinkRequest.class, com.google.logging.v1.GetSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.GetSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_GetSinkRequest_descriptor; - } - - public com.google.logging.v1.GetSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.GetSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.GetSinkRequest build() { - com.google.logging.v1.GetSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.GetSinkRequest buildPartial() { - com.google.logging.v1.GetSinkRequest result = new com.google.logging.v1.GetSinkRequest(this); - result.sinkName_ = sinkName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.GetSinkRequest) { - return mergeFrom((com.google.logging.v1.GetSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.GetSinkRequest other) { - if (other == com.google.logging.v1.GetSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.GetSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.GetSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to return.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to return.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to return.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to return.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to return.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.GetSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.GetSinkRequest) - private static final com.google.logging.v1.GetSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.GetSinkRequest(); - } - - public static com.google.logging.v1.GetSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GetSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new GetSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.GetSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequestOrBuilder.java deleted file mode 100644 index 761b7c80447d..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/GetSinkRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface GetSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.GetSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to return.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to return.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequest.java deleted file mode 100644 index e55a37d985a5..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListLogServiceSinksRequest} - * - *
- * The parameters to `ListLogServiceSinks`.
- * 
- */ -public final class ListLogServiceSinksRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListLogServiceSinksRequest) - ListLogServiceSinksRequestOrBuilder { - // Use ListLogServiceSinksRequest.newBuilder() to construct. - private ListLogServiceSinksRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListLogServiceSinksRequest() { - serviceName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListLogServiceSinksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - serviceName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogServiceSinksRequest.class, com.google.logging.v1.ListLogServiceSinksRequest.Builder.class); - } - - public static final int SERVICE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceName_; - /** - * optional string service_name = 1; - * - *
-   * The log service whose sinks are wanted.
-   * 
- */ - public java.lang.String getServiceName() { - java.lang.Object ref = serviceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceName_ = s; - return s; - } - } - /** - * optional string service_name = 1; - * - *
-   * The log service whose sinks are wanted.
-   * 
- */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - java.lang.Object ref = serviceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getServiceNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getServiceNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListLogServiceSinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListLogServiceSinksRequest} - * - *
-   * The parameters to `ListLogServiceSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListLogServiceSinksRequest) - com.google.logging.v1.ListLogServiceSinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogServiceSinksRequest.class, com.google.logging.v1.ListLogServiceSinksRequest.Builder.class); - } - - // Construct using com.google.logging.v1.ListLogServiceSinksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - serviceName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor; - } - - public com.google.logging.v1.ListLogServiceSinksRequest getDefaultInstanceForType() { - return com.google.logging.v1.ListLogServiceSinksRequest.getDefaultInstance(); - } - - public com.google.logging.v1.ListLogServiceSinksRequest build() { - com.google.logging.v1.ListLogServiceSinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListLogServiceSinksRequest buildPartial() { - com.google.logging.v1.ListLogServiceSinksRequest result = new com.google.logging.v1.ListLogServiceSinksRequest(this); - result.serviceName_ = serviceName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListLogServiceSinksRequest) { - return mergeFrom((com.google.logging.v1.ListLogServiceSinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListLogServiceSinksRequest other) { - if (other == com.google.logging.v1.ListLogServiceSinksRequest.getDefaultInstance()) return this; - if (!other.getServiceName().isEmpty()) { - serviceName_ = other.serviceName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListLogServiceSinksRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListLogServiceSinksRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serviceName_ = ""; - /** - * optional string service_name = 1; - * - *
-     * The log service whose sinks are wanted.
-     * 
- */ - public java.lang.String getServiceName() { - java.lang.Object ref = serviceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string service_name = 1; - * - *
-     * The log service whose sinks are wanted.
-     * 
- */ - public com.google.protobuf.ByteString - getServiceNameBytes() { - java.lang.Object ref = serviceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string service_name = 1; - * - *
-     * The log service whose sinks are wanted.
-     * 
- */ - public Builder setServiceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceName_ = value; - onChanged(); - return this; - } - /** - * optional string service_name = 1; - * - *
-     * The log service whose sinks are wanted.
-     * 
- */ - public Builder clearServiceName() { - - serviceName_ = getDefaultInstance().getServiceName(); - onChanged(); - return this; - } - /** - * optional string service_name = 1; - * - *
-     * The log service whose sinks are wanted.
-     * 
- */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListLogServiceSinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListLogServiceSinksRequest) - private static final com.google.logging.v1.ListLogServiceSinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListLogServiceSinksRequest(); - } - - public static com.google.logging.v1.ListLogServiceSinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListLogServiceSinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListLogServiceSinksRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListLogServiceSinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequestOrBuilder.java deleted file mode 100644 index 61c14f783256..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListLogServiceSinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListLogServiceSinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string service_name = 1; - * - *
-   * The log service whose sinks are wanted.
-   * 
- */ - java.lang.String getServiceName(); - /** - * optional string service_name = 1; - * - *
-   * The log service whose sinks are wanted.
-   * 
- */ - com.google.protobuf.ByteString - getServiceNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponse.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponse.java deleted file mode 100644 index c64bdd9e97fe..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponse.java +++ /dev/null @@ -1,801 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListLogServiceSinksResponse} - * - *
- * Result returned from `ListLogServiceSinks`.
- * 
- */ -public final class ListLogServiceSinksResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListLogServiceSinksResponse) - ListLogServiceSinksResponseOrBuilder { - // Use ListLogServiceSinksResponse.newBuilder() to construct. - private ListLogServiceSinksResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListLogServiceSinksResponse() { - sinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListLogServiceSinksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sinks_.add(input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogServiceSinksResponse.class, com.google.logging.v1.ListLogServiceSinksResponse.Builder.class); - } - - public static final int SINKS_FIELD_NUMBER = 1; - private java.util.List sinks_; - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - public java.util.List getSinksList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - public java.util.List - getSinksOrBuilderList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - public int getSinksCount() { - return sinks_.size(); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - return sinks_.get(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - return sinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sinks_.size(); i++) { - output.writeMessage(1, sinks_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < sinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sinks_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogServiceSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListLogServiceSinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListLogServiceSinksResponse} - * - *
-   * Result returned from `ListLogServiceSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListLogServiceSinksResponse) - com.google.logging.v1.ListLogServiceSinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogServiceSinksResponse.class, com.google.logging.v1.ListLogServiceSinksResponse.Builder.class); - } - - // Construct using com.google.logging.v1.ListLogServiceSinksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSinksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sinksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor; - } - - public com.google.logging.v1.ListLogServiceSinksResponse getDefaultInstanceForType() { - return com.google.logging.v1.ListLogServiceSinksResponse.getDefaultInstance(); - } - - public com.google.logging.v1.ListLogServiceSinksResponse build() { - com.google.logging.v1.ListLogServiceSinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListLogServiceSinksResponse buildPartial() { - com.google.logging.v1.ListLogServiceSinksResponse result = new com.google.logging.v1.ListLogServiceSinksResponse(this); - int from_bitField0_ = bitField0_; - if (sinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sinks_ = sinks_; - } else { - result.sinks_ = sinksBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListLogServiceSinksResponse) { - return mergeFrom((com.google.logging.v1.ListLogServiceSinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListLogServiceSinksResponse other) { - if (other == com.google.logging.v1.ListLogServiceSinksResponse.getDefaultInstance()) return this; - if (sinksBuilder_ == null) { - if (!other.sinks_.isEmpty()) { - if (sinks_.isEmpty()) { - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSinksIsMutable(); - sinks_.addAll(other.sinks_); - } - onChanged(); - } - } else { - if (!other.sinks_.isEmpty()) { - if (sinksBuilder_.isEmpty()) { - sinksBuilder_.dispose(); - sinksBuilder_ = null; - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - sinksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSinksFieldBuilder() : null; - } else { - sinksBuilder_.addAllMessages(other.sinks_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListLogServiceSinksResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListLogServiceSinksResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sinks_ = - java.util.Collections.emptyList(); - private void ensureSinksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(sinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinksBuilder_; - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public java.util.List getSinksList() { - if (sinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(sinks_); - } else { - return sinksBuilder_.getMessageList(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public int getSinksCount() { - if (sinksBuilder_ == null) { - return sinks_.size(); - } else { - return sinksBuilder_.getCount(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); - } else { - return sinksBuilder_.getMessage(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.set(index, value); - onChanged(); - } else { - sinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.set(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder addSinks(com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(value); - onChanged(); - } else { - sinksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(index, value); - onChanged(); - } else { - sinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder addSinks( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder addAllSinks( - java.lang.Iterable values) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sinks_); - onChanged(); - } else { - sinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder clearSinks() { - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sinksBuilder_.clear(); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public Builder removeSinks(int index) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.remove(index); - onChanged(); - } else { - sinksBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinksBuilder( - int index) { - return getSinksFieldBuilder().getBuilder(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); } else { - return sinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public java.util.List - getSinksOrBuilderList() { - if (sinksBuilder_ != null) { - return sinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sinks_); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder() { - return getSinksFieldBuilder().addBuilder( - com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder( - int index) { - return getSinksFieldBuilder().addBuilder( - index, com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log service sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `logServices.sinks.get`.
-     * 
- */ - public java.util.List - getSinksBuilderList() { - return getSinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinksFieldBuilder() { - if (sinksBuilder_ == null) { - sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - sinks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - sinks_ = null; - } - return sinksBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListLogServiceSinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListLogServiceSinksResponse) - private static final com.google.logging.v1.ListLogServiceSinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListLogServiceSinksResponse(); - } - - public static com.google.logging.v1.ListLogServiceSinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListLogServiceSinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListLogServiceSinksResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListLogServiceSinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponseOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponseOrBuilder.java deleted file mode 100644 index 2086da3273ed..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogServiceSinksResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListLogServiceSinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListLogServiceSinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - java.util.List - getSinksList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSink getSinks(int index); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - int getSinksCount(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - java.util.List - getSinksOrBuilderList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log service sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `logServices.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequest.java deleted file mode 100644 index 28ff11f9fe7c..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListLogSinksRequest} - * - *
- * The parameters to `ListLogSinks`.
- * 
- */ -public final class ListLogSinksRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListLogSinksRequest) - ListLogSinksRequestOrBuilder { - // Use ListLogSinksRequest.newBuilder() to construct. - private ListLogSinksRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListLogSinksRequest() { - logName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListLogSinksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - logName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogSinksRequest.class, com.google.logging.v1.ListLogSinksRequest.Builder.class); - } - - public static final int LOG_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object logName_; - /** - * optional string log_name = 3; - * - *
-   * The log whose sinks are wanted.
-   * For example, `"compute.google.com/syslog"`.
-   * 
- */ - public java.lang.String getLogName() { - java.lang.Object ref = logName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logName_ = s; - return s; - } - } - /** - * optional string log_name = 3; - * - *
-   * The log whose sinks are wanted.
-   * For example, `"compute.google.com/syslog"`.
-   * 
- */ - public com.google.protobuf.ByteString - getLogNameBytes() { - java.lang.Object ref = logName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getLogNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, logName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getLogNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, logName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListLogSinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListLogSinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListLogSinksRequest} - * - *
-   * The parameters to `ListLogSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListLogSinksRequest) - com.google.logging.v1.ListLogSinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogSinksRequest.class, com.google.logging.v1.ListLogSinksRequest.Builder.class); - } - - // Construct using com.google.logging.v1.ListLogSinksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - logName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksRequest_descriptor; - } - - public com.google.logging.v1.ListLogSinksRequest getDefaultInstanceForType() { - return com.google.logging.v1.ListLogSinksRequest.getDefaultInstance(); - } - - public com.google.logging.v1.ListLogSinksRequest build() { - com.google.logging.v1.ListLogSinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListLogSinksRequest buildPartial() { - com.google.logging.v1.ListLogSinksRequest result = new com.google.logging.v1.ListLogSinksRequest(this); - result.logName_ = logName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListLogSinksRequest) { - return mergeFrom((com.google.logging.v1.ListLogSinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListLogSinksRequest other) { - if (other == com.google.logging.v1.ListLogSinksRequest.getDefaultInstance()) return this; - if (!other.getLogName().isEmpty()) { - logName_ = other.logName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListLogSinksRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListLogSinksRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object logName_ = ""; - /** - * optional string log_name = 3; - * - *
-     * The log whose sinks are wanted.
-     * For example, `"compute.google.com/syslog"`.
-     * 
- */ - public java.lang.String getLogName() { - java.lang.Object ref = logName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string log_name = 3; - * - *
-     * The log whose sinks are wanted.
-     * For example, `"compute.google.com/syslog"`.
-     * 
- */ - public com.google.protobuf.ByteString - getLogNameBytes() { - java.lang.Object ref = logName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string log_name = 3; - * - *
-     * The log whose sinks are wanted.
-     * For example, `"compute.google.com/syslog"`.
-     * 
- */ - public Builder setLogName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - logName_ = value; - onChanged(); - return this; - } - /** - * optional string log_name = 3; - * - *
-     * The log whose sinks are wanted.
-     * For example, `"compute.google.com/syslog"`.
-     * 
- */ - public Builder clearLogName() { - - logName_ = getDefaultInstance().getLogName(); - onChanged(); - return this; - } - /** - * optional string log_name = 3; - * - *
-     * The log whose sinks are wanted.
-     * For example, `"compute.google.com/syslog"`.
-     * 
- */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - logName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListLogSinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListLogSinksRequest) - private static final com.google.logging.v1.ListLogSinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListLogSinksRequest(); - } - - public static com.google.logging.v1.ListLogSinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListLogSinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListLogSinksRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListLogSinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequestOrBuilder.java deleted file mode 100644 index 175f038db9f5..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListLogSinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListLogSinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string log_name = 3; - * - *
-   * The log whose sinks are wanted.
-   * For example, `"compute.google.com/syslog"`.
-   * 
- */ - java.lang.String getLogName(); - /** - * optional string log_name = 3; - * - *
-   * The log whose sinks are wanted.
-   * For example, `"compute.google.com/syslog"`.
-   * 
- */ - com.google.protobuf.ByteString - getLogNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponse.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponse.java deleted file mode 100644 index 8c6ba86f8406..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponse.java +++ /dev/null @@ -1,801 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListLogSinksResponse} - * - *
- * Result returned from `ListLogSinks`.
- * 
- */ -public final class ListLogSinksResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListLogSinksResponse) - ListLogSinksResponseOrBuilder { - // Use ListLogSinksResponse.newBuilder() to construct. - private ListLogSinksResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListLogSinksResponse() { - sinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListLogSinksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sinks_.add(input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogSinksResponse.class, com.google.logging.v1.ListLogSinksResponse.Builder.class); - } - - public static final int SINKS_FIELD_NUMBER = 1; - private java.util.List sinks_; - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - public java.util.List getSinksList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - public java.util.List - getSinksOrBuilderList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - public int getSinksCount() { - return sinks_.size(); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - return sinks_.get(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - return sinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sinks_.size(); i++) { - output.writeMessage(1, sinks_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < sinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sinks_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListLogSinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListLogSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListLogSinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListLogSinksResponse} - * - *
-   * Result returned from `ListLogSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListLogSinksResponse) - com.google.logging.v1.ListLogSinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListLogSinksResponse.class, com.google.logging.v1.ListLogSinksResponse.Builder.class); - } - - // Construct using com.google.logging.v1.ListLogSinksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSinksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sinksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListLogSinksResponse_descriptor; - } - - public com.google.logging.v1.ListLogSinksResponse getDefaultInstanceForType() { - return com.google.logging.v1.ListLogSinksResponse.getDefaultInstance(); - } - - public com.google.logging.v1.ListLogSinksResponse build() { - com.google.logging.v1.ListLogSinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListLogSinksResponse buildPartial() { - com.google.logging.v1.ListLogSinksResponse result = new com.google.logging.v1.ListLogSinksResponse(this); - int from_bitField0_ = bitField0_; - if (sinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sinks_ = sinks_; - } else { - result.sinks_ = sinksBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListLogSinksResponse) { - return mergeFrom((com.google.logging.v1.ListLogSinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListLogSinksResponse other) { - if (other == com.google.logging.v1.ListLogSinksResponse.getDefaultInstance()) return this; - if (sinksBuilder_ == null) { - if (!other.sinks_.isEmpty()) { - if (sinks_.isEmpty()) { - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSinksIsMutable(); - sinks_.addAll(other.sinks_); - } - onChanged(); - } - } else { - if (!other.sinks_.isEmpty()) { - if (sinksBuilder_.isEmpty()) { - sinksBuilder_.dispose(); - sinksBuilder_ = null; - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - sinksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSinksFieldBuilder() : null; - } else { - sinksBuilder_.addAllMessages(other.sinks_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListLogSinksResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListLogSinksResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sinks_ = - java.util.Collections.emptyList(); - private void ensureSinksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(sinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinksBuilder_; - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public java.util.List getSinksList() { - if (sinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(sinks_); - } else { - return sinksBuilder_.getMessageList(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public int getSinksCount() { - if (sinksBuilder_ == null) { - return sinks_.size(); - } else { - return sinksBuilder_.getCount(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); - } else { - return sinksBuilder_.getMessage(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.set(index, value); - onChanged(); - } else { - sinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.set(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder addSinks(com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(value); - onChanged(); - } else { - sinksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(index, value); - onChanged(); - } else { - sinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder addSinks( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder addAllSinks( - java.lang.Iterable values) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sinks_); - onChanged(); - } else { - sinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder clearSinks() { - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sinksBuilder_.clear(); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public Builder removeSinks(int index) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.remove(index); - onChanged(); - } else { - sinksBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinksBuilder( - int index) { - return getSinksFieldBuilder().getBuilder(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); } else { - return sinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public java.util.List - getSinksOrBuilderList() { - if (sinksBuilder_ != null) { - return sinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sinks_); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder() { - return getSinksFieldBuilder().addBuilder( - com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder( - int index) { - return getSinksFieldBuilder().addBuilder( - index, com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested log sinks. If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `log.sinks.get`.
-     * 
- */ - public java.util.List - getSinksBuilderList() { - return getSinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinksFieldBuilder() { - if (sinksBuilder_ == null) { - sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - sinks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - sinks_ = null; - } - return sinksBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListLogSinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListLogSinksResponse) - private static final com.google.logging.v1.ListLogSinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListLogSinksResponse(); - } - - public static com.google.logging.v1.ListLogSinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListLogSinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListLogSinksResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListLogSinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponseOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponseOrBuilder.java deleted file mode 100644 index 13810c3e111a..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListLogSinksResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListLogSinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListLogSinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - java.util.List - getSinksList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSink getSinks(int index); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - int getSinksCount(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - java.util.List - getSinksOrBuilderList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested log sinks. If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `log.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequest.java deleted file mode 100644 index 9a94f5d7a844..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequest.java +++ /dev/null @@ -1,476 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListSinksRequest} - * - *
- * The parameters to `ListSinks`.
- * 
- */ -public final class ListSinksRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListSinksRequest) - ListSinksRequestOrBuilder { - // Use ListSinksRequest.newBuilder() to construct. - private ListSinksRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListSinksRequest() { - projectName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListSinksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - projectName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListSinksRequest.class, com.google.logging.v1.ListSinksRequest.Builder.class); - } - - public static final int PROJECT_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object projectName_; - /** - * optional string project_name = 1; - * - *
-   * The project whose sinks are wanted.
-   * 
- */ - public java.lang.String getProjectName() { - java.lang.Object ref = projectName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectName_ = s; - return s; - } - } - /** - * optional string project_name = 1; - * - *
-   * The project whose sinks are wanted.
-   * 
- */ - public com.google.protobuf.ByteString - getProjectNameBytes() { - java.lang.Object ref = projectName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getProjectNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, projectName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListSinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListSinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListSinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListSinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListSinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListSinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListSinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListSinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListSinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListSinksRequest} - * - *
-   * The parameters to `ListSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListSinksRequest) - com.google.logging.v1.ListSinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListSinksRequest.class, com.google.logging.v1.ListSinksRequest.Builder.class); - } - - // Construct using com.google.logging.v1.ListSinksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - projectName_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksRequest_descriptor; - } - - public com.google.logging.v1.ListSinksRequest getDefaultInstanceForType() { - return com.google.logging.v1.ListSinksRequest.getDefaultInstance(); - } - - public com.google.logging.v1.ListSinksRequest build() { - com.google.logging.v1.ListSinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListSinksRequest buildPartial() { - com.google.logging.v1.ListSinksRequest result = new com.google.logging.v1.ListSinksRequest(this); - result.projectName_ = projectName_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListSinksRequest) { - return mergeFrom((com.google.logging.v1.ListSinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListSinksRequest other) { - if (other == com.google.logging.v1.ListSinksRequest.getDefaultInstance()) return this; - if (!other.getProjectName().isEmpty()) { - projectName_ = other.projectName_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListSinksRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListSinksRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectName_ = ""; - /** - * optional string project_name = 1; - * - *
-     * The project whose sinks are wanted.
-     * 
- */ - public java.lang.String getProjectName() { - java.lang.Object ref = projectName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string project_name = 1; - * - *
-     * The project whose sinks are wanted.
-     * 
- */ - public com.google.protobuf.ByteString - getProjectNameBytes() { - java.lang.Object ref = projectName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string project_name = 1; - * - *
-     * The project whose sinks are wanted.
-     * 
- */ - public Builder setProjectName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectName_ = value; - onChanged(); - return this; - } - /** - * optional string project_name = 1; - * - *
-     * The project whose sinks are wanted.
-     * 
- */ - public Builder clearProjectName() { - - projectName_ = getDefaultInstance().getProjectName(); - onChanged(); - return this; - } - /** - * optional string project_name = 1; - * - *
-     * The project whose sinks are wanted.
-     * 
- */ - public Builder setProjectNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectName_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListSinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListSinksRequest) - private static final com.google.logging.v1.ListSinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListSinksRequest(); - } - - public static com.google.logging.v1.ListSinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListSinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListSinksRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListSinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequestOrBuilder.java deleted file mode 100644 index 48098fec0920..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksRequestOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListSinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListSinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string project_name = 1; - * - *
-   * The project whose sinks are wanted.
-   * 
- */ - java.lang.String getProjectName(); - /** - * optional string project_name = 1; - * - *
-   * The project whose sinks are wanted.
-   * 
- */ - com.google.protobuf.ByteString - getProjectNameBytes(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponse.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponse.java deleted file mode 100644 index 134ceac7b519..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponse.java +++ /dev/null @@ -1,801 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.ListSinksResponse} - * - *
- * Result returned from `ListSinks`.
- * 
- */ -public final class ListSinksResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.ListSinksResponse) - ListSinksResponseOrBuilder { - // Use ListSinksResponse.newBuilder() to construct. - private ListSinksResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListSinksResponse() { - sinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListSinksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sinks_.add(input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListSinksResponse.class, com.google.logging.v1.ListSinksResponse.Builder.class); - } - - public static final int SINKS_FIELD_NUMBER = 1; - private java.util.List sinks_; - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - public java.util.List getSinksList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - public java.util.List - getSinksOrBuilderList() { - return sinks_; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - public int getSinksCount() { - return sinks_.size(); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - return sinks_.get(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - return sinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sinks_.size(); i++) { - output.writeMessage(1, sinks_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < sinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sinks_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.ListSinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListSinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListSinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.ListSinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.ListSinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListSinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListSinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.ListSinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.ListSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.ListSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.ListSinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.ListSinksResponse} - * - *
-   * Result returned from `ListSinks`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.ListSinksResponse) - com.google.logging.v1.ListSinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.ListSinksResponse.class, com.google.logging.v1.ListSinksResponse.Builder.class); - } - - // Construct using com.google.logging.v1.ListSinksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSinksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sinksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_ListSinksResponse_descriptor; - } - - public com.google.logging.v1.ListSinksResponse getDefaultInstanceForType() { - return com.google.logging.v1.ListSinksResponse.getDefaultInstance(); - } - - public com.google.logging.v1.ListSinksResponse build() { - com.google.logging.v1.ListSinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.ListSinksResponse buildPartial() { - com.google.logging.v1.ListSinksResponse result = new com.google.logging.v1.ListSinksResponse(this); - int from_bitField0_ = bitField0_; - if (sinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = java.util.Collections.unmodifiableList(sinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sinks_ = sinks_; - } else { - result.sinks_ = sinksBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.ListSinksResponse) { - return mergeFrom((com.google.logging.v1.ListSinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.ListSinksResponse other) { - if (other == com.google.logging.v1.ListSinksResponse.getDefaultInstance()) return this; - if (sinksBuilder_ == null) { - if (!other.sinks_.isEmpty()) { - if (sinks_.isEmpty()) { - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSinksIsMutable(); - sinks_.addAll(other.sinks_); - } - onChanged(); - } - } else { - if (!other.sinks_.isEmpty()) { - if (sinksBuilder_.isEmpty()) { - sinksBuilder_.dispose(); - sinksBuilder_ = null; - sinks_ = other.sinks_; - bitField0_ = (bitField0_ & ~0x00000001); - sinksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSinksFieldBuilder() : null; - } else { - sinksBuilder_.addAllMessages(other.sinks_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.ListSinksResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.ListSinksResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sinks_ = - java.util.Collections.emptyList(); - private void ensureSinksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - sinks_ = new java.util.ArrayList(sinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinksBuilder_; - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public java.util.List getSinksList() { - if (sinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(sinks_); - } else { - return sinksBuilder_.getMessageList(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public int getSinksCount() { - if (sinksBuilder_ == null) { - return sinks_.size(); - } else { - return sinksBuilder_.getCount(); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink getSinks(int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); - } else { - return sinksBuilder_.getMessage(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.set(index, value); - onChanged(); - } else { - sinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder setSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.set(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder addSinks(com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(value); - onChanged(); - } else { - sinksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink value) { - if (sinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSinksIsMutable(); - sinks_.add(index, value); - onChanged(); - } else { - sinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder addSinks( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder addSinks( - int index, com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(index, builderForValue.build()); - onChanged(); - } else { - sinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder addAllSinks( - java.lang.Iterable values) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sinks_); - onChanged(); - } else { - sinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder clearSinks() { - if (sinksBuilder_ == null) { - sinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sinksBuilder_.clear(); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public Builder removeSinks(int index) { - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.remove(index); - onChanged(); - } else { - sinksBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinksBuilder( - int index) { - return getSinksFieldBuilder().getBuilder(index); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index) { - if (sinksBuilder_ == null) { - return sinks_.get(index); } else { - return sinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public java.util.List - getSinksOrBuilderList() { - if (sinksBuilder_ != null) { - return sinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sinks_); - } - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder() { - return getSinksFieldBuilder().addBuilder( - com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder addSinksBuilder( - int index) { - return getSinksFieldBuilder().addBuilder( - index, com.google.logging.v1.LogSink.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-     * The requested sinks.  If a returned `LogSink` object has
-     * an empty `destination` field, the client can retrieve the complete
-     * `LogSink` object by calling `projects.sinks.get`.
-     * 
- */ - public java.util.List - getSinksBuilderList() { - return getSinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinksFieldBuilder() { - if (sinksBuilder_ == null) { - sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - sinks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - sinks_ = null; - } - return sinksBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.ListSinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.ListSinksResponse) - private static final com.google.logging.v1.ListSinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.ListSinksResponse(); - } - - public static com.google.logging.v1.ListSinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListSinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListSinksResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.ListSinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponseOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponseOrBuilder.java deleted file mode 100644 index c0ce4644a5a2..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/ListSinksResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface ListSinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.ListSinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - java.util.List - getSinksList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSink getSinks(int index); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - int getSinksCount(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - java.util.List - getSinksOrBuilderList(); - /** - * repeated .google.logging.v1.LogSink sinks = 1; - * - *
-   * The requested sinks.  If a returned `LogSink` object has
-   * an empty `destination` field, the client can retrieve the complete
-   * `LogSink` object by calling `projects.sinks.get`.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinksOrBuilder( - int index); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogError.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogError.java deleted file mode 100644 index 346da221c3b9..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogError.java +++ /dev/null @@ -1,792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.LogError} - * - *
- * Describes a problem with a logging resource or operation.
- * 
- */ -public final class LogError extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.LogError) - LogErrorOrBuilder { - // Use LogError.newBuilder() to construct. - private LogError(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private LogError() { - resource_ = ""; - timeNanos_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private LogError( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - resource_ = s; - break; - } - case 18: { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - timeNanos_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogError_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.LogError.class, com.google.logging.v1.LogError.Builder.class); - } - - public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object resource_; - /** - * optional string resource = 1; - * - *
-   * A resource name associated with this error. For example,
-   * the name of a Cloud Storage bucket that has insufficient permissions
-   * to be a destination for log entries.
-   * 
- */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - * optional string resource = 1; - * - *
-   * A resource name associated with this error. For example,
-   * the name of a Cloud Storage bucket that has insufficient permissions
-   * to be a destination for log entries.
-   * 
- */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private com.google.rpc.Status status_; - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - public boolean hasStatus() { - return status_ != null; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - public com.google.rpc.Status getStatus() { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int TIME_NANOS_FIELD_NUMBER = 3; - private long timeNanos_; - /** - * optional int64 time_nanos = 3; - * - *
-   * The time the error was observed, in nanoseconds since the Unix epoch.
-   * 
- */ - public long getTimeNanos() { - return timeNanos_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getResourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, resource_); - } - if (status_ != null) { - output.writeMessage(2, getStatus()); - } - if (timeNanos_ != 0L) { - output.writeInt64(3, timeNanos_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getResourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resource_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStatus()); - } - if (timeNanos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, timeNanos_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.LogError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.LogError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.LogError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.LogError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.LogError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.LogError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.LogError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.LogError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.LogError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.LogError parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.LogError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.LogError} - * - *
-   * Describes a problem with a logging resource or operation.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.LogError) - com.google.logging.v1.LogErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogError_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.LogError.class, com.google.logging.v1.LogError.Builder.class); - } - - // Construct using com.google.logging.v1.LogError.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - resource_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - timeNanos_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogError_descriptor; - } - - public com.google.logging.v1.LogError getDefaultInstanceForType() { - return com.google.logging.v1.LogError.getDefaultInstance(); - } - - public com.google.logging.v1.LogError build() { - com.google.logging.v1.LogError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.LogError buildPartial() { - com.google.logging.v1.LogError result = new com.google.logging.v1.LogError(this); - result.resource_ = resource_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - result.timeNanos_ = timeNanos_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.LogError) { - return mergeFrom((com.google.logging.v1.LogError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.LogError other) { - if (other == com.google.logging.v1.LogError.getDefaultInstance()) return this; - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (other.getTimeNanos() != 0L) { - setTimeNanos(other.getTimeNanos()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.LogError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.LogError) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object resource_ = ""; - /** - * optional string resource = 1; - * - *
-     * A resource name associated with this error. For example,
-     * the name of a Cloud Storage bucket that has insufficient permissions
-     * to be a destination for log entries.
-     * 
- */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string resource = 1; - * - *
-     * A resource name associated with this error. For example,
-     * the name of a Cloud Storage bucket that has insufficient permissions
-     * to be a destination for log entries.
-     * 
- */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string resource = 1; - * - *
-     * A resource name associated with this error. For example,
-     * the name of a Cloud Storage bucket that has insufficient permissions
-     * to be a destination for log entries.
-     * 
- */ - public Builder setResource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resource_ = value; - onChanged(); - return this; - } - /** - * optional string resource = 1; - * - *
-     * A resource name associated with this error. For example,
-     * the name of a Cloud Storage bucket that has insufficient permissions
-     * to be a destination for log entries.
-     * 
- */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } - /** - * optional string resource = 1; - * - *
-     * A resource name associated with this error. For example,
-     * the name of a Cloud Storage bucket that has insufficient permissions
-     * to be a destination for log entries.
-     * 
- */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; - } - - private com.google.rpc.Status status_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public com.google.rpc.Status.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; - } - } - /** - * optional .google.rpc.Status status = 2; - * - *
-     * The error description, including a classification code,
-     * an error message, and other details.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); - status_ = null; - } - return statusBuilder_; - } - - private long timeNanos_ ; - /** - * optional int64 time_nanos = 3; - * - *
-     * The time the error was observed, in nanoseconds since the Unix epoch.
-     * 
- */ - public long getTimeNanos() { - return timeNanos_; - } - /** - * optional int64 time_nanos = 3; - * - *
-     * The time the error was observed, in nanoseconds since the Unix epoch.
-     * 
- */ - public Builder setTimeNanos(long value) { - - timeNanos_ = value; - onChanged(); - return this; - } - /** - * optional int64 time_nanos = 3; - * - *
-     * The time the error was observed, in nanoseconds since the Unix epoch.
-     * 
- */ - public Builder clearTimeNanos() { - - timeNanos_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.LogError) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.LogError) - private static final com.google.logging.v1.LogError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.LogError(); - } - - public static com.google.logging.v1.LogError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public LogError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new LogError(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.LogError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogErrorOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogErrorOrBuilder.java deleted file mode 100644 index d1f8bce7c7bd..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogErrorOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface LogErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.LogError) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string resource = 1; - * - *
-   * A resource name associated with this error. For example,
-   * the name of a Cloud Storage bucket that has insufficient permissions
-   * to be a destination for log entries.
-   * 
- */ - java.lang.String getResource(); - /** - * optional string resource = 1; - * - *
-   * A resource name associated with this error. For example,
-   * the name of a Cloud Storage bucket that has insufficient permissions
-   * to be a destination for log entries.
-   * 
- */ - com.google.protobuf.ByteString - getResourceBytes(); - - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - boolean hasStatus(); - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - com.google.rpc.Status getStatus(); - /** - * optional .google.rpc.Status status = 2; - * - *
-   * The error description, including a classification code,
-   * an error message, and other details.
-   * 
- */ - com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - /** - * optional int64 time_nanos = 3; - * - *
-   * The time the error was observed, in nanoseconds since the Unix epoch.
-   * 
- */ - long getTimeNanos(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSink.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSink.java deleted file mode 100644 index 8c551d397b9c..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSink.java +++ /dev/null @@ -1,1276 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.LogSink} - * - *
- * Describes where log entries are written outside of Cloud Logging.
- * 
- */ -public final class LogSink extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.LogSink) - LogSinkOrBuilder { - // Use LogSink.newBuilder() to construct. - private LogSink(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private LogSink() { - name_ = ""; - destination_ = ""; - filter_ = ""; - errors_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private LogSink( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - destination_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - errors_.add(input.readMessage(com.google.logging.v1.LogError.parser(), extensionRegistry)); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - errors_ = java.util.Collections.unmodifiableList(errors_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogSink_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogSink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.LogSink.class, com.google.logging.v1.LogSink.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1; - * - *
-   * The client-assigned name of this sink. For example,
-   * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-   * similar kind in the project.
-   * 
- */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * optional string name = 1; - * - *
-   * The client-assigned name of this sink. For example,
-   * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-   * similar kind in the project.
-   * 
- */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESTINATION_FIELD_NUMBER = 3; - private volatile java.lang.Object destination_; - /** - * optional string destination = 3; - * - *
-   * The resource name of the destination.
-   * Cloud Logging writes designated log entries to this destination.
-   * For example, `"storage.googleapis.com/my-output-bucket"`.
-   * 
- */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destination_ = s; - return s; - } - } - /** - * optional string destination = 3; - * - *
-   * The resource name of the destination.
-   * Cloud Logging writes designated log entries to this destination.
-   * For example, `"storage.googleapis.com/my-output-bucket"`.
-   * 
- */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object filter_; - /** - * optional string filter = 5; - * - *
-   * An advanced logs filter. If present, only log entries matching the filter
-   * are written.  Only project sinks use this field; log sinks and log service
-   * sinks must not include a filter.
-   * 
- */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * optional string filter = 5; - * - *
-   * An advanced logs filter. If present, only log entries matching the filter
-   * are written.  Only project sinks use this field; log sinks and log service
-   * sinks must not include a filter.
-   * 
- */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERRORS_FIELD_NUMBER = 4; - private java.util.List errors_; - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - public java.util.List getErrorsList() { - return errors_; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - public java.util.List - getErrorsOrBuilderList() { - return errors_; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - public int getErrorsCount() { - return errors_.size(); - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - public com.google.logging.v1.LogError getErrors(int index) { - return errors_.get(index); - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - public com.google.logging.v1.LogErrorOrBuilder getErrorsOrBuilder( - int index) { - return errors_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!getDestinationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, destination_); - } - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(4, errors_.get(i)); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!getDestinationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, destination_); - } - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, errors_.get(i)); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.LogSink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.LogSink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.LogSink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.LogSink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.LogSink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.LogSink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.LogSink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.LogSink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.LogSink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.LogSink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.LogSink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.LogSink} - * - *
-   * Describes where log entries are written outside of Cloud Logging.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.LogSink) - com.google.logging.v1.LogSinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogSink_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogSink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.LogSink.class, com.google.logging.v1.LogSink.Builder.class); - } - - // Construct using com.google.logging.v1.LogSink.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getErrorsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - name_ = ""; - - destination_ = ""; - - filter_ = ""; - - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - errorsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_LogSink_descriptor; - } - - public com.google.logging.v1.LogSink getDefaultInstanceForType() { - return com.google.logging.v1.LogSink.getDefaultInstance(); - } - - public com.google.logging.v1.LogSink build() { - com.google.logging.v1.LogSink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.LogSink buildPartial() { - com.google.logging.v1.LogSink result = new com.google.logging.v1.LogSink(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - result.destination_ = destination_; - result.filter_ = filter_; - if (errorsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - errors_ = java.util.Collections.unmodifiableList(errors_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.errors_ = errors_; - } else { - result.errors_ = errorsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.LogSink) { - return mergeFrom((com.google.logging.v1.LogSink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.LogSink other) { - if (other == com.google.logging.v1.LogSink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDestination().isEmpty()) { - destination_ = other.destination_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (errorsBuilder_ == null) { - if (!other.errors_.isEmpty()) { - if (errors_.isEmpty()) { - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureErrorsIsMutable(); - errors_.addAll(other.errors_); - } - onChanged(); - } - } else { - if (!other.errors_.isEmpty()) { - if (errorsBuilder_.isEmpty()) { - errorsBuilder_.dispose(); - errorsBuilder_ = null; - errors_ = other.errors_; - bitField0_ = (bitField0_ & ~0x00000008); - errorsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; - } else { - errorsBuilder_.addAllMessages(other.errors_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.LogSink parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.LogSink) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - * - *
-     * The client-assigned name of this sink. For example,
-     * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-     * similar kind in the project.
-     * 
- */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - * - *
-     * The client-assigned name of this sink. For example,
-     * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-     * similar kind in the project.
-     * 
- */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - * - *
-     * The client-assigned name of this sink. For example,
-     * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-     * similar kind in the project.
-     * 
- */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - * - *
-     * The client-assigned name of this sink. For example,
-     * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-     * similar kind in the project.
-     * 
- */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - * - *
-     * The client-assigned name of this sink. For example,
-     * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-     * similar kind in the project.
-     * 
- */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object destination_ = ""; - /** - * optional string destination = 3; - * - *
-     * The resource name of the destination.
-     * Cloud Logging writes designated log entries to this destination.
-     * For example, `"storage.googleapis.com/my-output-bucket"`.
-     * 
- */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string destination = 3; - * - *
-     * The resource name of the destination.
-     * Cloud Logging writes designated log entries to this destination.
-     * For example, `"storage.googleapis.com/my-output-bucket"`.
-     * 
- */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string destination = 3; - * - *
-     * The resource name of the destination.
-     * Cloud Logging writes designated log entries to this destination.
-     * For example, `"storage.googleapis.com/my-output-bucket"`.
-     * 
- */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destination_ = value; - onChanged(); - return this; - } - /** - * optional string destination = 3; - * - *
-     * The resource name of the destination.
-     * Cloud Logging writes designated log entries to this destination.
-     * For example, `"storage.googleapis.com/my-output-bucket"`.
-     * 
- */ - public Builder clearDestination() { - - destination_ = getDefaultInstance().getDestination(); - onChanged(); - return this; - } - /** - * optional string destination = 3; - * - *
-     * The resource name of the destination.
-     * Cloud Logging writes designated log entries to this destination.
-     * For example, `"storage.googleapis.com/my-output-bucket"`.
-     * 
- */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destination_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * optional string filter = 5; - * - *
-     * An advanced logs filter. If present, only log entries matching the filter
-     * are written.  Only project sinks use this field; log sinks and log service
-     * sinks must not include a filter.
-     * 
- */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string filter = 5; - * - *
-     * An advanced logs filter. If present, only log entries matching the filter
-     * are written.  Only project sinks use this field; log sinks and log service
-     * sinks must not include a filter.
-     * 
- */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string filter = 5; - * - *
-     * An advanced logs filter. If present, only log entries matching the filter
-     * are written.  Only project sinks use this field; log sinks and log service
-     * sinks must not include a filter.
-     * 
- */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * optional string filter = 5; - * - *
-     * An advanced logs filter. If present, only log entries matching the filter
-     * are written.  Only project sinks use this field; log sinks and log service
-     * sinks must not include a filter.
-     * 
- */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * optional string filter = 5; - * - *
-     * An advanced logs filter. If present, only log entries matching the filter
-     * are written.  Only project sinks use this field; log sinks and log service
-     * sinks must not include a filter.
-     * 
- */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.util.List errors_ = - java.util.Collections.emptyList(); - private void ensureErrorsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - errors_ = new java.util.ArrayList(errors_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogError, com.google.logging.v1.LogError.Builder, com.google.logging.v1.LogErrorOrBuilder> errorsBuilder_; - - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public java.util.List getErrorsList() { - if (errorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(errors_); - } else { - return errorsBuilder_.getMessageList(); - } - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public int getErrorsCount() { - if (errorsBuilder_ == null) { - return errors_.size(); - } else { - return errorsBuilder_.getCount(); - } - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public com.google.logging.v1.LogError getErrors(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessage(index); - } - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder setErrors( - int index, com.google.logging.v1.LogError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - onChanged(); - } else { - errorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder setErrors( - int index, com.google.logging.v1.LogError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder addErrors(com.google.logging.v1.LogError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - onChanged(); - } else { - errorsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder addErrors( - int index, com.google.logging.v1.LogError value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - onChanged(); - } else { - errorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder addErrors( - com.google.logging.v1.LogError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder addErrors( - int index, com.google.logging.v1.LogError.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder addAllErrors( - java.lang.Iterable values) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); - onChanged(); - } else { - errorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder clearErrors() { - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - errorsBuilder_.clear(); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public Builder removeErrors(int index) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.remove(index); - onChanged(); - } else { - errorsBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public com.google.logging.v1.LogError.Builder getErrorsBuilder( - int index) { - return getErrorsFieldBuilder().getBuilder(index); - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public com.google.logging.v1.LogErrorOrBuilder getErrorsOrBuilder( - int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); } else { - return errorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public java.util.List - getErrorsOrBuilderList() { - if (errorsBuilder_ != null) { - return errorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(errors_); - } - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public com.google.logging.v1.LogError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.logging.v1.LogError.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public com.google.logging.v1.LogError.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.logging.v1.LogError.getDefaultInstance()); - } - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-     * _Output only._ If any errors occur when invoking a sink method,
-     * then this field contains descriptions of the errors.
-     * 
- */ - public java.util.List - getErrorsBuilderList() { - return getErrorsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogError, com.google.logging.v1.LogError.Builder, com.google.logging.v1.LogErrorOrBuilder> - getErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.logging.v1.LogError, com.google.logging.v1.LogError.Builder, com.google.logging.v1.LogErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - errors_ = null; - } - return errorsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.LogSink) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.LogSink) - private static final com.google.logging.v1.LogSink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.LogSink(); - } - - public static com.google.logging.v1.LogSink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public LogSink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new LogSink(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.LogSink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSinkOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSinkOrBuilder.java deleted file mode 100644 index 409db0531994..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LogSinkOrBuilder.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface LogSinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.LogSink) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - * - *
-   * The client-assigned name of this sink. For example,
-   * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-   * similar kind in the project.
-   * 
- */ - java.lang.String getName(); - /** - * optional string name = 1; - * - *
-   * The client-assigned name of this sink. For example,
-   * `"my-syslog-sink"`.  The name must be unique among the sinks of a
-   * similar kind in the project.
-   * 
- */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string destination = 3; - * - *
-   * The resource name of the destination.
-   * Cloud Logging writes designated log entries to this destination.
-   * For example, `"storage.googleapis.com/my-output-bucket"`.
-   * 
- */ - java.lang.String getDestination(); - /** - * optional string destination = 3; - * - *
-   * The resource name of the destination.
-   * Cloud Logging writes designated log entries to this destination.
-   * For example, `"storage.googleapis.com/my-output-bucket"`.
-   * 
- */ - com.google.protobuf.ByteString - getDestinationBytes(); - - /** - * optional string filter = 5; - * - *
-   * An advanced logs filter. If present, only log entries matching the filter
-   * are written.  Only project sinks use this field; log sinks and log service
-   * sinks must not include a filter.
-   * 
- */ - java.lang.String getFilter(); - /** - * optional string filter = 5; - * - *
-   * An advanced logs filter. If present, only log entries matching the filter
-   * are written.  Only project sinks use this field; log sinks and log service
-   * sinks must not include a filter.
-   * 
- */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - java.util.List - getErrorsList(); - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - com.google.logging.v1.LogError getErrors(int index); - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - int getErrorsCount(); - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - java.util.List - getErrorsOrBuilderList(); - /** - * repeated .google.logging.v1.LogError errors = 4; - * - *
-   * _Output only._ If any errors occur when invoking a sink method,
-   * then this field contains descriptions of the errors.
-   * 
- */ - com.google.logging.v1.LogErrorOrBuilder getErrorsOrBuilder( - int index); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LoggingConfig.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LoggingConfig.java deleted file mode 100644 index 934a8572b3eb..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/LoggingConfig.java +++ /dev/null @@ -1,358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public final class LoggingConfig { - private LoggingConfig() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_LogSink_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_LogSink_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_LogError_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_LogError_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListLogSinksRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListLogSinksRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListLogSinksResponse_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListLogSinksResponse_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_GetLogSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_GetLogSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_CreateLogSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_CreateLogSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_UpdateLogSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_DeleteLogSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListLogServiceSinksRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListLogServiceSinksResponse_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_GetLogServiceSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_CreateLogServiceSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_UpdateLogServiceSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_DeleteLogServiceSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListSinksRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListSinksRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_ListSinksResponse_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_ListSinksResponse_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_GetSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_GetSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_CreateSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_CreateSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_UpdateSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_UpdateSinkRequest_fieldAccessorTable; - static com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v1_DeleteSinkRequest_descriptor; - static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_logging_v1_DeleteSinkRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/logging/v1/logging_config.proto" + - "\022\021google.logging.v1\032\034google/api/annotati" + - "ons.proto\032\033google/protobuf/empty.proto\032\027" + - "google/rpc/status.proto\"i\n\007LogSink\022\014\n\004na" + - "me\030\001 \001(\t\022\023\n\013destination\030\003 \001(\t\022\016\n\006filter\030" + - "\005 \001(\t\022+\n\006errors\030\004 \003(\0132\033.google.logging.v" + - "1.LogError\"T\n\010LogError\022\020\n\010resource\030\001 \001(\t" + - "\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\022\022\n\n" + - "time_nanos\030\003 \001(\003\"\'\n\023ListLogSinksRequest\022" + - "\020\n\010log_name\030\003 \001(\t\"A\n\024ListLogSinksRespons", - "e\022)\n\005sinks\030\001 \003(\0132\032.google.logging.v1.Log" + - "Sink\"&\n\021GetLogSinkRequest\022\021\n\tsink_name\030\004" + - " \001(\t\"R\n\024CreateLogSinkRequest\022\020\n\010log_name" + - "\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.google.logging.v1" + - ".LogSink\"S\n\024UpdateLogSinkRequest\022\021\n\tsink" + - "_name\030\005 \001(\t\022(\n\004sink\030\004 \001(\0132\032.google.loggi" + - "ng.v1.LogSink\")\n\024DeleteLogSinkRequest\022\021\n" + - "\tsink_name\030\001 \001(\t\"2\n\032ListLogServiceSinksR" + - "equest\022\024\n\014service_name\030\001 \001(\t\"H\n\033ListLogS" + - "erviceSinksResponse\022)\n\005sinks\030\001 \003(\0132\032.goo", - "gle.logging.v1.LogSink\"-\n\030GetLogServiceS" + - "inkRequest\022\021\n\tsink_name\030\001 \001(\t\"]\n\033CreateL" + - "ogServiceSinkRequest\022\024\n\014service_name\030\001 \001" + - "(\t\022(\n\004sink\030\002 \001(\0132\032.google.logging.v1.Log" + - "Sink\"Z\n\033UpdateLogServiceSinkRequest\022\021\n\ts" + - "ink_name\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.google.lo" + - "gging.v1.LogSink\"0\n\033DeleteLogServiceSink" + - "Request\022\021\n\tsink_name\030\001 \001(\t\"(\n\020ListSinksR" + - "equest\022\024\n\014project_name\030\001 \001(\t\">\n\021ListSink" + - "sResponse\022)\n\005sinks\030\001 \003(\0132\032.google.loggin", - "g.v1.LogSink\"#\n\016GetSinkRequest\022\021\n\tsink_n" + - "ame\030\001 \001(\t\"S\n\021CreateSinkRequest\022\024\n\014projec" + - "t_name\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.google.logg" + - "ing.v1.LogSink\"P\n\021UpdateSinkRequest\022\021\n\ts" + - "ink_name\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.google.lo" + - "gging.v1.LogSink\"&\n\021DeleteSinkRequest\022\021\n" + - "\tsink_name\030\001 \001(\t2\304\020\n\rConfigService\022\214\001\n\014L" + - "istLogSinks\022&.google.logging.v1.ListLogS" + - "inksRequest\032\'.google.logging.v1.ListLogS" + - "inksResponse\"+\202\323\344\223\002%\022#{log_name=/project", - "s/*/logs/*}/sinks\022~\n\nGetLogSink\022$.google" + - ".logging.v1.GetLogSinkRequest\032\032.google.l" + - "ogging.v1.LogSink\".\202\323\344\223\002(\022&{sink_name=/p" + - "rojects/*/logs/*/sinks/*}\022\207\001\n\rCreateLogS" + - "ink\022\'.google.logging.v1.CreateLogSinkReq" + - "uest\032\032.google.logging.v1.LogSink\"1\202\323\344\223\002+" + - "\"#{log_name=/projects/*/logs/*}/sinks:\004s" + - "ink\022\212\001\n\rUpdateLogSink\022\'.google.logging.v" + - "1.UpdateLogSinkRequest\032\032.google.logging." + - "v1.LogSink\"4\202\323\344\223\002.\032&{sink_name=/projects", - "/*/logs/*/sinks/*}:\004sink\022\200\001\n\rDeleteLogSi" + - "nk\022\'.google.logging.v1.DeleteLogSinkRequ" + - "est\032\026.google.protobuf.Empty\".\202\323\344\223\002(*&{si" + - "nk_name=/projects/*/logs/*/sinks/*}\022\254\001\n\023" + - "ListLogServiceSinks\022-.google.logging.v1." + - "ListLogServiceSinksRequest\032..google.logg" + - "ing.v1.ListLogServiceSinksResponse\"6\202\323\344\223" + - "\0020\022.{service_name=/projects/*/logService" + - "s/*}/sinks\022\223\001\n\021GetLogServiceSink\022+.googl" + - "e.logging.v1.GetLogServiceSinkRequest\032\032.", - "google.logging.v1.LogSink\"5\202\323\344\223\002/\022-{sink" + - "_name=/projects/*/logServices/*/sinks/*}" + - "\022\240\001\n\024CreateLogServiceSink\022..google.loggi" + - "ng.v1.CreateLogServiceSinkRequest\032\032.goog" + - "le.logging.v1.LogSink\"<\202\323\344\223\0026\".{service_" + - "name=/projects/*/logServices/*}/sinks:\004s" + - "ink\022\237\001\n\024UpdateLogServiceSink\022..google.lo" + - "gging.v1.UpdateLogServiceSinkRequest\032\032.g" + - "oogle.logging.v1.LogSink\";\202\323\344\223\0025\032-{sink_" + - "name=/projects/*/logServices/*/sinks/*}:", - "\004sink\022\225\001\n\024DeleteLogServiceSink\022..google." + - "logging.v1.DeleteLogServiceSinkRequest\032\026" + - ".google.protobuf.Empty\"5\202\323\344\223\002/*-{sink_na" + - "me=/projects/*/logServices/*/sinks/*}\022\200\001" + - "\n\tListSinks\022#.google.logging.v1.ListSink" + - "sRequest\032$.google.logging.v1.ListSinksRe" + - "sponse\"(\202\323\344\223\002\"\022 {project_name=/projects/" + - "*}/sinks\022q\n\007GetSink\022!.google.logging.v1." + - "GetSinkRequest\032\032.google.logging.v1.LogSi" + - "nk\"\'\202\323\344\223\002!\022\037{sink_name=/projects/*/sinks", - "/*}\022~\n\nCreateSink\022$.google.logging.v1.Cr" + - "eateSinkRequest\032\032.google.logging.v1.LogS" + - "ink\".\202\323\344\223\002(\" {project_name=/projects/*}/" + - "sinks:\004sink\022}\n\nUpdateSink\022$.google.loggi" + - "ng.v1.UpdateSinkRequest\032\032.google.logging" + - ".v1.LogSink\"-\202\323\344\223\002\'\032\037{sink_name=/project" + - "s/*/sinks/*}:\004sink\022s\n\nDeleteSink\022$.googl" + - "e.logging.v1.DeleteSinkRequest\032\026.google." + - "protobuf.Empty\"\'\202\323\344\223\002!*\037{sink_name=/proj" + - "ects/*/sinks/*}B\031\n\025com.google.logging.v1", - "P\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, assigner); - internal_static_google_logging_v1_LogSink_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v1_LogSink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_LogSink_descriptor, - new java.lang.String[] { "Name", "Destination", "Filter", "Errors", }); - internal_static_google_logging_v1_LogError_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v1_LogError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_LogError_descriptor, - new java.lang.String[] { "Resource", "Status", "TimeNanos", }); - internal_static_google_logging_v1_ListLogSinksRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v1_ListLogSinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListLogSinksRequest_descriptor, - new java.lang.String[] { "LogName", }); - internal_static_google_logging_v1_ListLogSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v1_ListLogSinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListLogSinksResponse_descriptor, - new java.lang.String[] { "Sinks", }); - internal_static_google_logging_v1_GetLogSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v1_GetLogSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_GetLogSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v1_CreateLogSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v1_CreateLogSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_CreateLogSinkRequest_descriptor, - new java.lang.String[] { "LogName", "Sink", }); - internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v1_UpdateLogSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor, - new java.lang.String[] { "SinkName", "Sink", }); - internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_logging_v1_DeleteLogSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_DeleteLogSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_logging_v1_ListLogServiceSinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListLogServiceSinksRequest_descriptor, - new java.lang.String[] { "ServiceName", }); - internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_logging_v1_ListLogServiceSinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListLogServiceSinksResponse_descriptor, - new java.lang.String[] { "Sinks", }); - internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_logging_v1_GetLogServiceSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_GetLogServiceSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_logging_v1_CreateLogServiceSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_CreateLogServiceSinkRequest_descriptor, - new java.lang.String[] { "ServiceName", "Sink", }); - internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_logging_v1_UpdateLogServiceSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor, - new java.lang.String[] { "SinkName", "Sink", }); - internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_logging_v1_DeleteLogServiceSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_DeleteLogServiceSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v1_ListSinksRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_logging_v1_ListSinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListSinksRequest_descriptor, - new java.lang.String[] { "ProjectName", }); - internal_static_google_logging_v1_ListSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_logging_v1_ListSinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_ListSinksResponse_descriptor, - new java.lang.String[] { "Sinks", }); - internal_static_google_logging_v1_GetSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_logging_v1_GetSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_GetSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v1_CreateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_logging_v1_CreateSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_CreateSinkRequest_descriptor, - new java.lang.String[] { "ProjectName", "Sink", }); - internal_static_google_logging_v1_UpdateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_logging_v1_UpdateSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_UpdateSinkRequest_descriptor, - new java.lang.String[] { "SinkName", "Sink", }); - internal_static_google_logging_v1_DeleteSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_logging_v1_DeleteSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_logging_v1_DeleteSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequest.java deleted file mode 100644 index 78af32a7deda..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequest.java +++ /dev/null @@ -1,708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.UpdateLogServiceSinkRequest} - * - *
- * The parameters to `UpdateLogServiceSink`.
- * 
- */ -public final class UpdateLogServiceSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.UpdateLogServiceSinkRequest) - UpdateLogServiceSinkRequestOrBuilder { - // Use UpdateLogServiceSinkRequest.newBuilder() to construct. - private UpdateLogServiceSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UpdateLogServiceSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UpdateLogServiceSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - case 18: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateLogServiceSinkRequest.class, com.google.logging.v1.UpdateLogServiceSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to update.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to update.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 2; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - if (sink_ != null) { - output.writeMessage(2, getSink()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateLogServiceSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.UpdateLogServiceSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.UpdateLogServiceSinkRequest} - * - *
-   * The parameters to `UpdateLogServiceSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.UpdateLogServiceSinkRequest) - com.google.logging.v1.UpdateLogServiceSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogServiceSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateLogServiceSinkRequest.class, com.google.logging.v1.UpdateLogServiceSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.UpdateLogServiceSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogServiceSinkRequest_descriptor; - } - - public com.google.logging.v1.UpdateLogServiceSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.UpdateLogServiceSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.UpdateLogServiceSinkRequest build() { - com.google.logging.v1.UpdateLogServiceSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.UpdateLogServiceSinkRequest buildPartial() { - com.google.logging.v1.UpdateLogServiceSinkRequest result = new com.google.logging.v1.UpdateLogServiceSinkRequest(this); - result.sinkName_ = sinkName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.UpdateLogServiceSinkRequest) { - return mergeFrom((com.google.logging.v1.UpdateLogServiceSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.UpdateLogServiceSinkRequest other) { - if (other == com.google.logging.v1.UpdateLogServiceSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.UpdateLogServiceSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.UpdateLogServiceSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to update.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to update.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to update.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to update.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the log service sink to update.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.UpdateLogServiceSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.UpdateLogServiceSinkRequest) - private static final com.google.logging.v1.UpdateLogServiceSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.UpdateLogServiceSinkRequest(); - } - - public static com.google.logging.v1.UpdateLogServiceSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UpdateLogServiceSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new UpdateLogServiceSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.UpdateLogServiceSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequestOrBuilder.java deleted file mode 100644 index 6af52f86f7e6..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogServiceSinkRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface UpdateLogServiceSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.UpdateLogServiceSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to update.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the log service sink to update.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequest.java deleted file mode 100644 index 9a2647426c7f..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequest.java +++ /dev/null @@ -1,708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.UpdateLogSinkRequest} - * - *
- * The parameters to `UpdateLogSink`.
- * 
- */ -public final class UpdateLogSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.UpdateLogSinkRequest) - UpdateLogSinkRequestOrBuilder { - // Use UpdateLogSinkRequest.newBuilder() to construct. - private UpdateLogSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UpdateLogSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UpdateLogSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 34: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateLogSinkRequest.class, com.google.logging.v1.UpdateLogSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 5; - * - *
-   * The resource name of the sink to update.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 5; - * - *
-   * The resource name of the sink to update.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 4; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sink_ != null) { - output.writeMessage(4, getSink()); - } - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, sinkName_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSink()); - } - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, sinkName_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateLogSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.UpdateLogSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.UpdateLogSinkRequest} - * - *
-   * The parameters to `UpdateLogSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.UpdateLogSinkRequest) - com.google.logging.v1.UpdateLogSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateLogSinkRequest.class, com.google.logging.v1.UpdateLogSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.UpdateLogSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateLogSinkRequest_descriptor; - } - - public com.google.logging.v1.UpdateLogSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.UpdateLogSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.UpdateLogSinkRequest build() { - com.google.logging.v1.UpdateLogSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.UpdateLogSinkRequest buildPartial() { - com.google.logging.v1.UpdateLogSinkRequest result = new com.google.logging.v1.UpdateLogSinkRequest(this); - result.sinkName_ = sinkName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.UpdateLogSinkRequest) { - return mergeFrom((com.google.logging.v1.UpdateLogSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.UpdateLogSinkRequest other) { - if (other == com.google.logging.v1.UpdateLogSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.UpdateLogSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.UpdateLogSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 5; - * - *
-     * The resource name of the sink to update.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 5; - * - *
-     * The resource name of the sink to update.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 5; - * - *
-     * The resource name of the sink to update.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 5; - * - *
-     * The resource name of the sink to update.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 5; - * - *
-     * The resource name of the sink to update.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.UpdateLogSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.UpdateLogSinkRequest) - private static final com.google.logging.v1.UpdateLogSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.UpdateLogSinkRequest(); - } - - public static com.google.logging.v1.UpdateLogSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UpdateLogSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new UpdateLogSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.UpdateLogSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequestOrBuilder.java deleted file mode 100644 index f15320b55459..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateLogSinkRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface UpdateLogSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.UpdateLogSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 5; - * - *
-   * The resource name of the sink to update.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 5; - * - *
-   * The resource name of the sink to update.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 4; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequest.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequest.java deleted file mode 100644 index b5ead16c5fde..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequest.java +++ /dev/null @@ -1,708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -/** - * Protobuf type {@code google.logging.v1.UpdateSinkRequest} - * - *
- * The parameters to `UpdateSink`.
- * 
- */ -public final class UpdateSinkRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.logging.v1.UpdateSinkRequest) - UpdateSinkRequestOrBuilder { - // Use UpdateSinkRequest.newBuilder() to construct. - private UpdateSinkRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UpdateSinkRequest() { - sinkName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UpdateSinkRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - sinkName_ = s; - break; - } - case 18: { - com.google.logging.v1.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v1.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateSinkRequest.class, com.google.logging.v1.UpdateSinkRequest.Builder.class); - } - - public static final int SINK_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object sinkName_; - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to update.
-   * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } - } - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to update.
-   * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SINK_FIELD_NUMBER = 2; - private com.google.logging.v1.LogSink sink_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public boolean hasSink() { - return sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public com.google.logging.v1.LogSink getSink() { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - return getSink(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSinkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sinkName_); - } - if (sink_ != null) { - output.writeMessage(2, getSink()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSinkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sinkName_); - } - if (sink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.google.logging.v1.UpdateSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.google.logging.v1.UpdateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.logging.v1.UpdateSinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.logging.v1.UpdateSinkRequest} - * - *
-   * The parameters to `UpdateSink`.
-   * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.logging.v1.UpdateSinkRequest) - com.google.logging.v1.UpdateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateSinkRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateSinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.logging.v1.UpdateSinkRequest.class, com.google.logging.v1.UpdateSinkRequest.Builder.class); - } - - // Construct using com.google.logging.v1.UpdateSinkRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sinkName_ = ""; - - if (sinkBuilder_ == null) { - sink_ = null; - } else { - sink_ = null; - sinkBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v1.LoggingConfig.internal_static_google_logging_v1_UpdateSinkRequest_descriptor; - } - - public com.google.logging.v1.UpdateSinkRequest getDefaultInstanceForType() { - return com.google.logging.v1.UpdateSinkRequest.getDefaultInstance(); - } - - public com.google.logging.v1.UpdateSinkRequest build() { - com.google.logging.v1.UpdateSinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.google.logging.v1.UpdateSinkRequest buildPartial() { - com.google.logging.v1.UpdateSinkRequest result = new com.google.logging.v1.UpdateSinkRequest(this); - result.sinkName_ = sinkName_; - if (sinkBuilder_ == null) { - result.sink_ = sink_; - } else { - result.sink_ = sinkBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v1.UpdateSinkRequest) { - return mergeFrom((com.google.logging.v1.UpdateSinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v1.UpdateSinkRequest other) { - if (other == com.google.logging.v1.UpdateSinkRequest.getDefaultInstance()) return this; - if (!other.getSinkName().isEmpty()) { - sinkName_ = other.sinkName_; - onChanged(); - } - if (other.hasSink()) { - mergeSink(other.getSink()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v1.UpdateSinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v1.UpdateSinkRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sinkName_ = ""; - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to update.
-     * 
- */ - public java.lang.String getSinkName() { - java.lang.Object ref = sinkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sinkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to update.
-     * 
- */ - public com.google.protobuf.ByteString - getSinkNameBytes() { - java.lang.Object ref = sinkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sinkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to update.
-     * 
- */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sinkName_ = value; - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to update.
-     * 
- */ - public Builder clearSinkName() { - - sinkName_ = getDefaultInstance().getSinkName(); - onChanged(); - return this; - } - /** - * optional string sink_name = 1; - * - *
-     * The resource name of the project sink to update.
-     * 
- */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sinkName_ = value; - onChanged(); - return this; - } - - private com.google.logging.v1.LogSink sink_ = null; - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> sinkBuilder_; - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public boolean hasSink() { - return sinkBuilder_ != null || sink_ != null; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSink getSink() { - if (sinkBuilder_ == null) { - return sink_ == null ? com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } else { - return sinkBuilder_.getMessage(); - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder setSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sink_ = value; - onChanged(); - } else { - sinkBuilder_.setMessage(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder setSink( - com.google.logging.v1.LogSink.Builder builderForValue) { - if (sinkBuilder_ == null) { - sink_ = builderForValue.build(); - onChanged(); - } else { - sinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder mergeSink(com.google.logging.v1.LogSink value) { - if (sinkBuilder_ == null) { - if (sink_ != null) { - sink_ = - com.google.logging.v1.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial(); - } else { - sink_ = value; - } - onChanged(); - } else { - sinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public Builder clearSink() { - if (sinkBuilder_ == null) { - sink_ = null; - onChanged(); - } else { - sink_ = null; - sinkBuilder_ = null; - } - - return this; - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSink.Builder getSinkBuilder() { - - onChanged(); - return getSinkFieldBuilder().getBuilder(); - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - public com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder() { - if (sinkBuilder_ != null) { - return sinkBuilder_.getMessageOrBuilder(); - } else { - return sink_ == null ? - com.google.logging.v1.LogSink.getDefaultInstance() : sink_; - } - } - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-     * The new sink configuration. The value of `sink.name` is ignored
-     * and the client-assigned name contained in `sinkName` is used instead.
-     * 
- */ - private com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder> - getSinkFieldBuilder() { - if (sinkBuilder_ == null) { - sinkBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.logging.v1.LogSink, com.google.logging.v1.LogSink.Builder, com.google.logging.v1.LogSinkOrBuilder>( - getSink(), - getParentForChildren(), - isClean()); - sink_ = null; - } - return sinkBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:google.logging.v1.UpdateSinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.logging.v1.UpdateSinkRequest) - private static final com.google.logging.v1.UpdateSinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.logging.v1.UpdateSinkRequest(); - } - - public static com.google.logging.v1.UpdateSinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UpdateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new UpdateSinkRequest(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public com.google.logging.v1.UpdateSinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequestOrBuilder.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequestOrBuilder.java deleted file mode 100644 index f073961eec0d..000000000000 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v1/UpdateSinkRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v1/logging_config.proto - -package com.google.logging.v1; - -public interface UpdateSinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v1.UpdateSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to update.
-   * 
- */ - java.lang.String getSinkName(); - /** - * optional string sink_name = 1; - * - *
-   * The resource name of the project sink to update.
-   * 
- */ - com.google.protobuf.ByteString - getSinkNameBytes(); - - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - boolean hasSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - com.google.logging.v1.LogSink getSink(); - /** - * optional .google.logging.v1.LogSink sink = 2; - * - *
-   * The new sink configuration. The value of `sink.name` is ignored
-   * and the client-assigned name contained in `sinkName` is used instead.
-   * 
- */ - com.google.logging.v1.LogSinkOrBuilder getSinkOrBuilder(); -} diff --git a/gcloud-java-logging/generated/src/main/java/com/google/logging/v2/LoggingConfig.java b/gcloud-java-logging/generated/src/main/java/com/google/logging/v2/LoggingConfig.java index c292318cf439..853e6313d2e1 100644 --- a/gcloud-java-logging/generated/src/main/java/com/google/logging/v2/LoggingConfig.java +++ b/gcloud-java-logging/generated/src/main/java/com/google/logging/v2/LoggingConfig.java @@ -54,15 +54,14 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n&google/logging/v2/logging_config.proto" + "\022\021google.logging.v2\032\034google/api/annotati" + - "ons.proto\032&google/logging/v1/logging_con" + - "fig.proto\032\033google/protobuf/empty.proto\032\037" + + "ons.proto\032\033google/protobuf/empty.proto\032\037" + "google/protobuf/timestamp.proto\"\306\001\n\007LogS" + "ink\022\014\n\004name\030\001 \001(\t\022\023\n\013destination\030\003 \001(\t\022\016" + "\n\006filter\030\005 \001(\t\022G\n\025output_version_format\030" + "\006 \001(\0162(.google.logging.v2.LogSink.Versio" + "nFormat\"?\n\rVersionFormat\022\036\n\032VERSION_FORM" + - "AT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002\"O\n\020List", - "SinksRequest\022\024\n\014project_name\030\001 \001(\t\022\022\n\npa" + + "AT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002\"O\n\020List" + + "SinksRequest\022\024\n\014project_name\030\001 \001(\t\022\022\n\npa", "ge_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"W\n\021Lis" + "tSinksResponse\022)\n\005sinks\030\001 \003(\0132\032.google.l" + "ogging.v2.LogSink\022\027\n\017next_page_token\030\002 \001" + @@ -71,8 +70,8 @@ public static void registerAllExtensions( "(\t\022(\n\004sink\030\002 \001(\0132\032.google.logging.v2.Log" + "Sink\"P\n\021UpdateSinkRequest\022\021\n\tsink_name\030\001" + " \001(\t\022(\n\004sink\030\002 \001(\0132\032.google.logging.v2.L" + - "ogSink\"&\n\021DeleteSinkRequest\022\021\n\tsink_name", - "\030\001 \001(\t2\245\005\n\017ConfigServiceV2\022\210\001\n\tListSinks" + + "ogSink\"&\n\021DeleteSinkRequest\022\021\n\tsink_name" + + "\030\001 \001(\t2\245\005\n\017ConfigServiceV2\022\210\001\n\tListSinks", "\022#.google.logging.v2.ListSinksRequest\032$." + "google.logging.v2.ListSinksResponse\"0\202\323\344" + "\223\002*\022(/v2beta1/{project_name=projects/*}/" + @@ -81,8 +80,8 @@ public static void registerAllExtensions( "/\202\323\344\223\002)\022\'/v2beta1/{sink_name=projects/*/" + "sinks/*}\022\206\001\n\nCreateSink\022$.google.logging" + ".v2.CreateSinkRequest\032\032.google.logging.v" + - "2.LogSink\"6\202\323\344\223\0020\"(/v2beta1/{project_nam", - "e=projects/*}/sinks:\004sink\022\205\001\n\nUpdateSink" + + "2.LogSink\"6\202\323\344\223\0020\"(/v2beta1/{project_nam" + + "e=projects/*}/sinks:\004sink\022\205\001\n\nUpdateSink", "\022$.google.logging.v2.UpdateSinkRequest\032\032" + ".google.logging.v2.LogSink\"5\202\323\344\223\002/\032\'/v2b" + "eta1/{sink_name=projects/*/sinks/*}:\004sin" + @@ -104,7 +103,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), - com.google.logging.v1.LoggingConfig.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); @@ -156,7 +154,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); - com.google.logging.v1.LoggingConfig.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); }