
com.google.apphosting.executor.Target Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: target.proto
package com.google.apphosting.executor;
public final class Target {
private Target() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TaskAuthorizationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskAuthorization)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code java.apphosting.TaskAuthorization}
*/
public static final class TaskAuthorization extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskAuthorization)
TaskAuthorizationOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskAuthorization.newBuilder() to construct.
private TaskAuthorization(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskAuthorization() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskAuthorization();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_TaskAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_TaskAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.TaskAuthorization.class, com.google.apphosting.executor.Target.TaskAuthorization.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeAsMessageSetTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSizeAsMessageSet();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.executor.Target.TaskAuthorization)) {
return super.equals(obj);
}
com.google.apphosting.executor.Target.TaskAuthorization other = (com.google.apphosting.executor.Target.TaskAuthorization) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.TaskAuthorization 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.apphosting.executor.Target.TaskAuthorization parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.TaskAuthorization parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.executor.Target.TaskAuthorization prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskAuthorization}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskAuthorization)
com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_TaskAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_TaskAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.TaskAuthorization.class, com.google.apphosting.executor.Target.TaskAuthorization.Builder.class);
}
// Construct using com.google.apphosting.executor.Target.TaskAuthorization.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_TaskAuthorization_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorization getDefaultInstanceForType() {
return com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorization build() {
com.google.apphosting.executor.Target.TaskAuthorization result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorization buildPartial() {
com.google.apphosting.executor.Target.TaskAuthorization result = new com.google.apphosting.executor.Target.TaskAuthorization(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.executor.Target.TaskAuthorization) {
return mergeFrom((com.google.apphosting.executor.Target.TaskAuthorization)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Target.TaskAuthorization other) {
if (other == com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskAuthorization)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskAuthorization)
private static final com.google.apphosting.executor.Target.TaskAuthorization DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Target.TaskAuthorization();
}
public static com.google.apphosting.executor.Target.TaskAuthorization getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskAuthorization parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorization getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OidcAuthorizationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.OidcAuthorization)
com.google.protobuf.MessageOrBuilder {
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
boolean hasServiceAccountEmail();
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
java.lang.String getServiceAccountEmail();
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
com.google.protobuf.ByteString
getServiceAccountEmailBytes();
/**
* optional string audience = 2;
* @return Whether the audience field is set.
*/
boolean hasAudience();
/**
* optional string audience = 2;
* @return The audience.
*/
java.lang.String getAudience();
/**
* optional string audience = 2;
* @return The bytes for audience.
*/
com.google.protobuf.ByteString
getAudienceBytes();
}
/**
*
* Contains information required for generating OIDC token.
*
*
* Protobuf type {@code java.apphosting.OidcAuthorization}
*/
public static final class OidcAuthorization extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.OidcAuthorization)
OidcAuthorizationOrBuilder {
private static final long serialVersionUID = 0L;
// Use OidcAuthorization.newBuilder() to construct.
private OidcAuthorization(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OidcAuthorization() {
serviceAccountEmail_ = "";
audience_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OidcAuthorization();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OidcAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OidcAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.OidcAuthorization.class, com.google.apphosting.executor.Target.OidcAuthorization.Builder.class);
}
private int bitField0_;
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceAccountEmail_ = "";
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
@java.lang.Override
public boolean hasServiceAccountEmail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
@java.lang.Override
public java.lang.String getServiceAccountEmail() {
java.lang.Object ref = serviceAccountEmail_;
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();
if (bs.isValidUtf8()) {
serviceAccountEmail_ = s;
}
return s;
}
}
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountEmailBytes() {
java.lang.Object ref = serviceAccountEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUDIENCE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object audience_ = "";
/**
* optional string audience = 2;
* @return Whether the audience field is set.
*/
@java.lang.Override
public boolean hasAudience() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string audience = 2;
* @return The audience.
*/
@java.lang.Override
public java.lang.String getAudience() {
java.lang.Object ref = audience_;
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();
if (bs.isValidUtf8()) {
audience_ = s;
}
return s;
}
}
/**
* optional string audience = 2;
* @return The bytes for audience.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAudienceBytes() {
java.lang.Object ref = audience_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
audience_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.executor.Target.OidcAuthorization)) {
return super.equals(obj);
}
com.google.apphosting.executor.Target.OidcAuthorization other = (com.google.apphosting.executor.Target.OidcAuthorization) obj;
if (hasServiceAccountEmail() != other.hasServiceAccountEmail()) return false;
if (hasServiceAccountEmail()) {
if (!getServiceAccountEmail()
.equals(other.getServiceAccountEmail())) return false;
}
if (hasAudience() != other.hasAudience()) return false;
if (hasAudience()) {
if (!getAudience()
.equals(other.getAudience())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasServiceAccountEmail()) {
hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountEmail().hashCode();
}
if (hasAudience()) {
hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getAudience().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OidcAuthorization 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.apphosting.executor.Target.OidcAuthorization parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OidcAuthorization parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.executor.Target.OidcAuthorization prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Contains information required for generating OIDC token.
*
*
* Protobuf type {@code java.apphosting.OidcAuthorization}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.OidcAuthorization)
com.google.apphosting.executor.Target.OidcAuthorizationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OidcAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OidcAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.OidcAuthorization.class, com.google.apphosting.executor.Target.OidcAuthorization.Builder.class);
}
// Construct using com.google.apphosting.executor.Target.OidcAuthorization.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serviceAccountEmail_ = "";
audience_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OidcAuthorization_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OidcAuthorization getDefaultInstanceForType() {
return com.google.apphosting.executor.Target.OidcAuthorization.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Target.OidcAuthorization build() {
com.google.apphosting.executor.Target.OidcAuthorization result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OidcAuthorization buildPartial() {
com.google.apphosting.executor.Target.OidcAuthorization result = new com.google.apphosting.executor.Target.OidcAuthorization(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Target.OidcAuthorization result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serviceAccountEmail_ = serviceAccountEmail_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.audience_ = audience_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.executor.Target.OidcAuthorization) {
return mergeFrom((com.google.apphosting.executor.Target.OidcAuthorization)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Target.OidcAuthorization other) {
if (other == com.google.apphosting.executor.Target.OidcAuthorization.getDefaultInstance()) return this;
if (other.hasServiceAccountEmail()) {
serviceAccountEmail_ = other.serviceAccountEmail_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasAudience()) {
audience_ = other.audience_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serviceAccountEmail_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
audience_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object serviceAccountEmail_ = "";
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
public boolean hasServiceAccountEmail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
public java.lang.String getServiceAccountEmail() {
java.lang.Object ref = serviceAccountEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
serviceAccountEmail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
public com.google.protobuf.ByteString
getServiceAccountEmailBytes() {
java.lang.Object ref = serviceAccountEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string service_account_email = 1;
* @param value The serviceAccountEmail to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountEmail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceAccountEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string service_account_email = 1;
* @return This builder for chaining.
*/
public Builder clearServiceAccountEmail() {
serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string service_account_email = 1;
* @param value The bytes for serviceAccountEmail to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
serviceAccountEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object audience_ = "";
/**
* optional string audience = 2;
* @return Whether the audience field is set.
*/
public boolean hasAudience() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string audience = 2;
* @return The audience.
*/
public java.lang.String getAudience() {
java.lang.Object ref = audience_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
audience_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string audience = 2;
* @return The bytes for audience.
*/
public com.google.protobuf.ByteString
getAudienceBytes() {
java.lang.Object ref = audience_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
audience_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string audience = 2;
* @param value The audience to set.
* @return This builder for chaining.
*/
public Builder setAudience(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
audience_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string audience = 2;
* @return This builder for chaining.
*/
public Builder clearAudience() {
audience_ = getDefaultInstance().getAudience();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string audience = 2;
* @param value The bytes for audience to set.
* @return This builder for chaining.
*/
public Builder setAudienceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
audience_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.OidcAuthorization)
}
// @@protoc_insertion_point(class_scope:java.apphosting.OidcAuthorization)
private static final com.google.apphosting.executor.Target.OidcAuthorization DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Target.OidcAuthorization();
}
public static com.google.apphosting.executor.Target.OidcAuthorization getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OidcAuthorization parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OidcAuthorization getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OAuthAuthorizationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.OAuthAuthorization)
com.google.protobuf.MessageOrBuilder {
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
boolean hasServiceAccountEmail();
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
java.lang.String getServiceAccountEmail();
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
com.google.protobuf.ByteString
getServiceAccountEmailBytes();
/**
* optional string scope = 2;
* @return Whether the scope field is set.
*/
boolean hasScope();
/**
* optional string scope = 2;
* @return The scope.
*/
java.lang.String getScope();
/**
* optional string scope = 2;
* @return The bytes for scope.
*/
com.google.protobuf.ByteString
getScopeBytes();
}
/**
*
* Contains information required for generating OAuth token.
*
*
* Protobuf type {@code java.apphosting.OAuthAuthorization}
*/
public static final class OAuthAuthorization extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.OAuthAuthorization)
OAuthAuthorizationOrBuilder {
private static final long serialVersionUID = 0L;
// Use OAuthAuthorization.newBuilder() to construct.
private OAuthAuthorization(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OAuthAuthorization() {
serviceAccountEmail_ = "";
scope_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OAuthAuthorization();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OAuthAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OAuthAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.OAuthAuthorization.class, com.google.apphosting.executor.Target.OAuthAuthorization.Builder.class);
}
private int bitField0_;
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceAccountEmail_ = "";
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
@java.lang.Override
public boolean hasServiceAccountEmail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
@java.lang.Override
public java.lang.String getServiceAccountEmail() {
java.lang.Object ref = serviceAccountEmail_;
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();
if (bs.isValidUtf8()) {
serviceAccountEmail_ = s;
}
return s;
}
}
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountEmailBytes() {
java.lang.Object ref = serviceAccountEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object scope_ = "";
/**
* optional string scope = 2;
* @return Whether the scope field is set.
*/
@java.lang.Override
public boolean hasScope() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string scope = 2;
* @return The scope.
*/
@java.lang.Override
public java.lang.String getScope() {
java.lang.Object ref = scope_;
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();
if (bs.isValidUtf8()) {
scope_ = s;
}
return s;
}
}
/**
* optional string scope = 2;
* @return The bytes for scope.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.executor.Target.OAuthAuthorization)) {
return super.equals(obj);
}
com.google.apphosting.executor.Target.OAuthAuthorization other = (com.google.apphosting.executor.Target.OAuthAuthorization) obj;
if (hasServiceAccountEmail() != other.hasServiceAccountEmail()) return false;
if (hasServiceAccountEmail()) {
if (!getServiceAccountEmail()
.equals(other.getServiceAccountEmail())) return false;
}
if (hasScope() != other.hasScope()) return false;
if (hasScope()) {
if (!getScope()
.equals(other.getScope())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasServiceAccountEmail()) {
hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountEmail().hashCode();
}
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization 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.apphosting.executor.Target.OAuthAuthorization parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Target.OAuthAuthorization parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.executor.Target.OAuthAuthorization prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Contains information required for generating OAuth token.
*
*
* Protobuf type {@code java.apphosting.OAuthAuthorization}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.OAuthAuthorization)
com.google.apphosting.executor.Target.OAuthAuthorizationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OAuthAuthorization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OAuthAuthorization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Target.OAuthAuthorization.class, com.google.apphosting.executor.Target.OAuthAuthorization.Builder.class);
}
// Construct using com.google.apphosting.executor.Target.OAuthAuthorization.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serviceAccountEmail_ = "";
scope_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Target.internal_static_java_apphosting_OAuthAuthorization_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OAuthAuthorization getDefaultInstanceForType() {
return com.google.apphosting.executor.Target.OAuthAuthorization.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Target.OAuthAuthorization build() {
com.google.apphosting.executor.Target.OAuthAuthorization result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OAuthAuthorization buildPartial() {
com.google.apphosting.executor.Target.OAuthAuthorization result = new com.google.apphosting.executor.Target.OAuthAuthorization(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Target.OAuthAuthorization result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serviceAccountEmail_ = serviceAccountEmail_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scope_ = scope_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.executor.Target.OAuthAuthorization) {
return mergeFrom((com.google.apphosting.executor.Target.OAuthAuthorization)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Target.OAuthAuthorization other) {
if (other == com.google.apphosting.executor.Target.OAuthAuthorization.getDefaultInstance()) return this;
if (other.hasServiceAccountEmail()) {
serviceAccountEmail_ = other.serviceAccountEmail_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasScope()) {
scope_ = other.scope_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serviceAccountEmail_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
scope_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object serviceAccountEmail_ = "";
/**
* optional string service_account_email = 1;
* @return Whether the serviceAccountEmail field is set.
*/
public boolean hasServiceAccountEmail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string service_account_email = 1;
* @return The serviceAccountEmail.
*/
public java.lang.String getServiceAccountEmail() {
java.lang.Object ref = serviceAccountEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
serviceAccountEmail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string service_account_email = 1;
* @return The bytes for serviceAccountEmail.
*/
public com.google.protobuf.ByteString
getServiceAccountEmailBytes() {
java.lang.Object ref = serviceAccountEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string service_account_email = 1;
* @param value The serviceAccountEmail to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountEmail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceAccountEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string service_account_email = 1;
* @return This builder for chaining.
*/
public Builder clearServiceAccountEmail() {
serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string service_account_email = 1;
* @param value The bytes for serviceAccountEmail to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
serviceAccountEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object scope_ = "";
/**
* optional string scope = 2;
* @return Whether the scope field is set.
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string scope = 2;
* @return The scope.
*/
public java.lang.String getScope() {
java.lang.Object ref = scope_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scope_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string scope = 2;
* @return The bytes for scope.
*/
public com.google.protobuf.ByteString
getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string scope = 2;
* @param value The scope to set.
* @return This builder for chaining.
*/
public Builder setScope(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scope_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string scope = 2;
* @return This builder for chaining.
*/
public Builder clearScope() {
scope_ = getDefaultInstance().getScope();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string scope = 2;
* @param value The bytes for scope to set.
* @return This builder for chaining.
*/
public Builder setScopeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scope_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.OAuthAuthorization)
}
// @@protoc_insertion_point(class_scope:java.apphosting.OAuthAuthorization)
private static final com.google.apphosting.executor.Target.OAuthAuthorization DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Target.OAuthAuthorization();
}
public static com.google.apphosting.executor.Target.OAuthAuthorization getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OAuthAuthorization parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.executor.Target.OAuthAuthorization getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_TaskAuthorization_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_TaskAuthorization_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_OidcAuthorization_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_OidcAuthorization_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_OAuthAuthorization_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_OAuthAuthorization_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\014target.proto\022\017java.apphosting\"\027\n\021TaskA" +
"uthorization:\002\010\001\"D\n\021OidcAuthorization\022\035\n" +
"\025service_account_email\030\001 \001(\t\022\020\n\010audience" +
"\030\002 \001(\t\"B\n\022OAuthAuthorization\022\035\n\025service_" +
"account_email\030\001 \001(\t\022\r\n\005scope\030\002 \001(\tB \n\036co" +
"m.google.apphosting.executor"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_java_apphosting_TaskAuthorization_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_java_apphosting_TaskAuthorization_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_TaskAuthorization_descriptor,
new java.lang.String[] { });
internal_static_java_apphosting_OidcAuthorization_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_java_apphosting_OidcAuthorization_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_OidcAuthorization_descriptor,
new java.lang.String[] { "ServiceAccountEmail", "Audience", });
internal_static_java_apphosting_OAuthAuthorization_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_java_apphosting_OAuthAuthorization_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_OAuthAuthorization_descriptor,
new java.lang.String[] { "ServiceAccountEmail", "Scope", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy