All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: partner/integrations/GreenbitsSettings.proto

package io.bloombox.schema.partner.integrations.greenbits;

public final class GreenbitsSettingsOuterClass {
  private GreenbitsSettingsOuterClass() {}
  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 GreenbitsIntegrationFeaturesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Enable or disable customer data sync.
     * 
* * bool customers = 1; */ boolean getCustomers(); /** *
     * Enable or disable checkin integration.
     * 
* * bool checkin = 2; */ boolean getCheckin(); } /** *
   * Specifies Greenbits features that may be enabled or disabled.
   * 
* * Protobuf type {@code bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures} */ public static final class GreenbitsIntegrationFeatures extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures) GreenbitsIntegrationFeaturesOrBuilder { private static final long serialVersionUID = 0L; // Use GreenbitsIntegrationFeatures.newBuilder() to construct. private GreenbitsIntegrationFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GreenbitsIntegrationFeatures() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GreenbitsIntegrationFeatures( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { customers_ = input.readBool(); break; } case 16: { checkin_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.class, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder.class); } public static final int CUSTOMERS_FIELD_NUMBER = 1; private boolean customers_; /** *
     * Enable or disable customer data sync.
     * 
* * bool customers = 1; */ public boolean getCustomers() { return customers_; } public static final int CHECKIN_FIELD_NUMBER = 2; private boolean checkin_; /** *
     * Enable or disable checkin integration.
     * 
* * bool checkin = 2; */ public boolean getCheckin() { return checkin_; } 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 (customers_ != false) { output.writeBool(1, customers_); } if (checkin_ != false) { output.writeBool(2, checkin_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (customers_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, customers_); } if (checkin_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, checkin_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures)) { return super.equals(obj); } io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures other = (io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures) obj; if (getCustomers() != other.getCustomers()) return false; if (getCheckin() != other.getCheckin()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CUSTOMERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCustomers()); hash = (37 * hash) + CHECKIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCheckin()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures 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(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures 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; } /** *
     * Specifies Greenbits features that may be enabled or disabled.
     * 
* * Protobuf type {@code bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures) io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.class, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder.class); } // Construct using io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); customers_ = false; checkin_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getDefaultInstanceForType() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures build() { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures buildPartial() { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures result = new io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures(this); result.customers_ = customers_; result.checkin_ = checkin_; 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures) { return mergeFrom((io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures other) { if (other == io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.getDefaultInstance()) return this; if (other.getCustomers() != false) { setCustomers(other.getCustomers()); } if (other.getCheckin() != false) { setCheckin(other.getCheckin()); } this.mergeUnknownFields(other.unknownFields); 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 { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean customers_ ; /** *
       * Enable or disable customer data sync.
       * 
* * bool customers = 1; */ public boolean getCustomers() { return customers_; } /** *
       * Enable or disable customer data sync.
       * 
* * bool customers = 1; */ public Builder setCustomers(boolean value) { customers_ = value; onChanged(); return this; } /** *
       * Enable or disable customer data sync.
       * 
* * bool customers = 1; */ public Builder clearCustomers() { customers_ = false; onChanged(); return this; } private boolean checkin_ ; /** *
       * Enable or disable checkin integration.
       * 
* * bool checkin = 2; */ public boolean getCheckin() { return checkin_; } /** *
       * Enable or disable checkin integration.
       * 
* * bool checkin = 2; */ public Builder setCheckin(boolean value) { checkin_ = value; onChanged(); return this; } /** *
       * Enable or disable checkin integration.
       * 
* * bool checkin = 2; */ public Builder clearCheckin() { checkin_ = false; 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:bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures) } // @@protoc_insertion_point(class_scope:bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures) private static final io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures(); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GreenbitsIntegrationFeatures parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GreenbitsIntegrationFeatures(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GreenbitsSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.partner.integrations.greenbits.GreenbitsSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Organization account ID in Greenbits.
     * 
* * string organization = 1; */ java.lang.String getOrganization(); /** *
     * Organization account ID in Greenbits.
     * 
* * string organization = 1; */ com.google.protobuf.ByteString getOrganizationBytes(); /** *
     * Greenbits API key, available in the Greenbits dashboard.
     * 
* * string api_key = 2; */ java.lang.String getApiKey(); /** *
     * Greenbits API key, available in the Greenbits dashboard.
     * 
* * string api_key = 2; */ com.google.protobuf.ByteString getApiKeyBytes(); /** *
     * Greenbits Auth token to use, available in the Greenbits dashboard.
     * 
* * string auth_token = 3; */ java.lang.String getAuthToken(); /** *
     * Greenbits Auth token to use, available in the Greenbits dashboard.
     * 
* * string auth_token = 3; */ com.google.protobuf.ByteString getAuthTokenBytes(); /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ boolean hasFeatures(); /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getFeatures(); /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder getFeaturesOrBuilder(); } /** *
   * Specifies settings related to Greenbits integration with Bloombox.
   * 
* * Protobuf type {@code bloombox.partner.integrations.greenbits.GreenbitsSettings} */ public static final class GreenbitsSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.partner.integrations.greenbits.GreenbitsSettings) GreenbitsSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use GreenbitsSettings.newBuilder() to construct. private GreenbitsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GreenbitsSettings() { organization_ = ""; apiKey_ = ""; authToken_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GreenbitsSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); organization_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); apiKey_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); authToken_ = s; break; } case 82: { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder subBuilder = null; if (features_ != null) { subBuilder = features_.toBuilder(); } features_ = input.readMessage(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(features_); features_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.class, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.Builder.class); } public static final int ORGANIZATION_FIELD_NUMBER = 1; private volatile java.lang.Object organization_; /** *
     * Organization account ID in Greenbits.
     * 
* * string organization = 1; */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; 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(); organization_ = s; return s; } } /** *
     * Organization account ID in Greenbits.
     * 
* * string organization = 1; */ public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organization_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int API_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object apiKey_; /** *
     * Greenbits API key, available in the Greenbits dashboard.
     * 
* * string api_key = 2; */ public java.lang.String getApiKey() { java.lang.Object ref = apiKey_; 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(); apiKey_ = s; return s; } } /** *
     * Greenbits API key, available in the Greenbits dashboard.
     * 
* * string api_key = 2; */ public com.google.protobuf.ByteString getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTH_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object authToken_; /** *
     * Greenbits Auth token to use, available in the Greenbits dashboard.
     * 
* * string auth_token = 3; */ public java.lang.String getAuthToken() { java.lang.Object ref = authToken_; 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(); authToken_ = s; return s; } } /** *
     * Greenbits Auth token to use, available in the Greenbits dashboard.
     * 
* * string auth_token = 3; */ public com.google.protobuf.ByteString getAuthTokenBytes() { java.lang.Object ref = authToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FEATURES_FIELD_NUMBER = 10; private io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures features_; /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public boolean hasFeatures() { return features_ != null; } /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getFeatures() { return features_ == null ? io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.getDefaultInstance() : features_; } /** *
     * Flags indicating features that should be enabled or disabled.
     * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder getFeaturesOrBuilder() { return getFeatures(); } 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 (!getOrganizationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organization_); } if (!getApiKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiKey_); } if (!getAuthTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authToken_); } if (features_ != null) { output.writeMessage(10, getFeatures()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getOrganizationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organization_); } if (!getApiKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiKey_); } if (!getAuthTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authToken_); } if (features_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getFeatures()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings)) { return super.equals(obj); } io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings other = (io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings) obj; if (!getOrganization() .equals(other.getOrganization())) return false; if (!getApiKey() .equals(other.getApiKey())) return false; if (!getAuthToken() .equals(other.getAuthToken())) return false; if (hasFeatures() != other.hasFeatures()) return false; if (hasFeatures()) { if (!getFeatures() .equals(other.getFeatures())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; hash = (53 * hash) + getOrganization().hashCode(); hash = (37 * hash) + API_KEY_FIELD_NUMBER; hash = (53 * hash) + getApiKey().hashCode(); hash = (37 * hash) + AUTH_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getAuthToken().hashCode(); if (hasFeatures()) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeatures().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings 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(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings 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; } /** *
     * Specifies settings related to Greenbits integration with Bloombox.
     * 
* * Protobuf type {@code bloombox.partner.integrations.greenbits.GreenbitsSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.partner.integrations.greenbits.GreenbitsSettings) io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.class, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.Builder.class); } // Construct using io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); organization_ = ""; apiKey_ = ""; authToken_ = ""; if (featuresBuilder_ == null) { features_ = null; } else { features_ = null; featuresBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings getDefaultInstanceForType() { return io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings build() { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings buildPartial() { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings result = new io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings(this); result.organization_ = organization_; result.apiKey_ = apiKey_; result.authToken_ = authToken_; if (featuresBuilder_ == null) { result.features_ = features_; } else { result.features_ = featuresBuilder_.build(); } 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 io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings) { return mergeFrom((io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings other) { if (other == io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings.getDefaultInstance()) return this; if (!other.getOrganization().isEmpty()) { organization_ = other.organization_; onChanged(); } if (!other.getApiKey().isEmpty()) { apiKey_ = other.apiKey_; onChanged(); } if (!other.getAuthToken().isEmpty()) { authToken_ = other.authToken_; onChanged(); } if (other.hasFeatures()) { mergeFeatures(other.getFeatures()); } this.mergeUnknownFields(other.unknownFields); 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 { io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object organization_ = ""; /** *
       * Organization account ID in Greenbits.
       * 
* * string organization = 1; */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Organization account ID in Greenbits.
       * 
* * string organization = 1; */ public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organization_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Organization account ID in Greenbits.
       * 
* * string organization = 1; */ public Builder setOrganization( java.lang.String value) { if (value == null) { throw new NullPointerException(); } organization_ = value; onChanged(); return this; } /** *
       * Organization account ID in Greenbits.
       * 
* * string organization = 1; */ public Builder clearOrganization() { organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** *
       * Organization account ID in Greenbits.
       * 
* * string organization = 1; */ public Builder setOrganizationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organization_ = value; onChanged(); return this; } private java.lang.Object apiKey_ = ""; /** *
       * Greenbits API key, available in the Greenbits dashboard.
       * 
* * string api_key = 2; */ public java.lang.String getApiKey() { java.lang.Object ref = apiKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Greenbits API key, available in the Greenbits dashboard.
       * 
* * string api_key = 2; */ public com.google.protobuf.ByteString getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Greenbits API key, available in the Greenbits dashboard.
       * 
* * string api_key = 2; */ public Builder setApiKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } apiKey_ = value; onChanged(); return this; } /** *
       * Greenbits API key, available in the Greenbits dashboard.
       * 
* * string api_key = 2; */ public Builder clearApiKey() { apiKey_ = getDefaultInstance().getApiKey(); onChanged(); return this; } /** *
       * Greenbits API key, available in the Greenbits dashboard.
       * 
* * string api_key = 2; */ public Builder setApiKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiKey_ = value; onChanged(); return this; } private java.lang.Object authToken_ = ""; /** *
       * Greenbits Auth token to use, available in the Greenbits dashboard.
       * 
* * string auth_token = 3; */ public java.lang.String getAuthToken() { java.lang.Object ref = authToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Greenbits Auth token to use, available in the Greenbits dashboard.
       * 
* * string auth_token = 3; */ public com.google.protobuf.ByteString getAuthTokenBytes() { java.lang.Object ref = authToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Greenbits Auth token to use, available in the Greenbits dashboard.
       * 
* * string auth_token = 3; */ public Builder setAuthToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authToken_ = value; onChanged(); return this; } /** *
       * Greenbits Auth token to use, available in the Greenbits dashboard.
       * 
* * string auth_token = 3; */ public Builder clearAuthToken() { authToken_ = getDefaultInstance().getAuthToken(); onChanged(); return this; } /** *
       * Greenbits Auth token to use, available in the Greenbits dashboard.
       * 
* * string auth_token = 3; */ public Builder setAuthTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authToken_ = value; onChanged(); return this; } private io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures features_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder> featuresBuilder_; /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public boolean hasFeatures() { return featuresBuilder_ != null || features_ != null; } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures getFeatures() { if (featuresBuilder_ == null) { return features_ == null ? io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.getDefaultInstance() : features_; } else { return featuresBuilder_.getMessage(); } } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public Builder setFeatures(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures value) { if (featuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } features_ = value; onChanged(); } else { featuresBuilder_.setMessage(value); } return this; } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public Builder setFeatures( io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder builderForValue) { if (featuresBuilder_ == null) { features_ = builderForValue.build(); onChanged(); } else { featuresBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public Builder mergeFeatures(io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures value) { if (featuresBuilder_ == null) { if (features_ != null) { features_ = io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.newBuilder(features_).mergeFrom(value).buildPartial(); } else { features_ = value; } onChanged(); } else { featuresBuilder_.mergeFrom(value); } return this; } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public Builder clearFeatures() { if (featuresBuilder_ == null) { features_ = null; onChanged(); } else { features_ = null; featuresBuilder_ = null; } return this; } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder getFeaturesBuilder() { onChanged(); return getFeaturesFieldBuilder().getBuilder(); } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder getFeaturesOrBuilder() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilder(); } else { return features_ == null ? io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.getDefaultInstance() : features_; } } /** *
       * Flags indicating features that should be enabled or disabled.
       * 
* * .bloombox.partner.integrations.greenbits.GreenbitsIntegrationFeatures features = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeatures.Builder, io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsIntegrationFeaturesOrBuilder>( getFeatures(), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; } @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:bloombox.partner.integrations.greenbits.GreenbitsSettings) } // @@protoc_insertion_point(class_scope:bloombox.partner.integrations.greenbits.GreenbitsSettings) private static final io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings(); } public static io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GreenbitsSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GreenbitsSettings(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.schema.partner.integrations.greenbits.GreenbitsSettingsOuterClass.GreenbitsSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_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,partner/integrations/GreenbitsSettings" + ".proto\022\'bloombox.partner.integrations.gr" + "eenbits\"B\n\034GreenbitsIntegrationFeatures\022" + "\021\n\tcustomers\030\001 \001(\010\022\017\n\007checkin\030\002 \001(\010\"\247\001\n\021" + "GreenbitsSettings\022\024\n\014organization\030\001 \001(\t\022" + "\017\n\007api_key\030\002 \001(\t\022\022\n\nauth_token\030\003 \001(\t\022W\n\010" + "features\030\n \001(\0132E.bloombox.partner.integr" + "ations.greenbits.GreenbitsIntegrationFea" + "turesB=\n1io.bloombox.schema.partner.inte" + "grations.greenbitsH\001P\000\242\002\003BBSb\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[] { }, assigner); internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_partner_integrations_greenbits_GreenbitsIntegrationFeatures_descriptor, new java.lang.String[] { "Customers", "Checkin", }); internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_partner_integrations_greenbits_GreenbitsSettings_descriptor, new java.lang.String[] { "Organization", "ApiKey", "AuthToken", "Features", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy